
It doesn’t matter which you do first, they must both be in place and restarted for everything to work. Enterprise shared hosting have a workaround for restarting, but the rest of us must restart. Similarly, the server must be restarted for new entries to be registered. The virtual host is of course related to the server itself. You need to restart your computer for new entries to register. It’s not really related to server software. The hosts entry is for your local computer to recognize a certain domain and to use the provided IP instead of any it might find on DNS. But while you have my attention, I can answer some of your questions. George is correct, this is not a WP question. On a side note, should i do the setting of my sites to not allow directory indexing? So the question here is: should i try to run with the vhost settings to: Address: AnyĪnd do not choose or select a specific port!? Servers -> Apache Webserver: Select your virtual Server -> Edit Directivesīesides this: is it thinkable that the mixing with ‘Any’ with a specific port doesn’t play nicely for some reason. – so the question is: do i need to add the Server name and then Restarting apache in order to make it work? – i can imagine that if i do so, it does not updated the directive and subsequently the Server Name will be missing in it – is it very important to add server name initially and then webmin virtual host edit/delete, I found this at the setup under `Apache -> the Virtual Domain settings -> Networking and Addresses -> Alternate virtual server names FIELD. ServerAlias an update: i fixed this by adding directive ServerAlias domain.tld *.domain.tld Here are the directives webmin created in /etc/apache2/sites-available/ DocumentRoot /var/www/sites/my_testsite I have written down the directives and all the config-things:



The problem i encountered: the browser is loading the default site (at /var/Well i muse what goes wrong here at the moment: Then went to my_ in my browser and encountered a issue: Then, to test it, I edited the hosts file on my local machine and added Then I created a virtual host under Webmin->Servers->Apache Webserver with the following settings:ĭocument Root: /var/www/sites/my_testsite I created the directory /var/www/sites/my_testsite. I’m currently working on a setup of a server to host multiple websites on a single IP.Ĭonfigurations and setup: i have installed Webmin on an OpenSuse-server.
