One blog, multiple (virtual) servers
-
I have one WP instance that I want to access using different webserver/virtual hosts, listening of different ports: one listens on port 80, second on 81, third on 82 and so on. So to access the blog, the URL would be https://host:port/blogname.
Problem though is that WP stores WP- and blog URLs in the database (table <prefix>_options, and in order to have the instance work with one particular server, it needs to hold the port-number as well – as I found out.
Can it be done?
It would be nice it that could be retrieved by the WP code from the URL, but if I would need to set a variable per server, that would be a possibility as well, and add that in the URL when needed
- The topic ‘One blog, multiple (virtual) servers’ is closed to new replies.