Question
Setting up multiple virtual hosts with domain names
I’m trying to get my virtual hosts to work on Apache. I followed the tutorials here on this website, but for some reason both my domain names keep going to the standard Apache page instead of their own folders. I disables the 000-default.conf and enabled my own.
Here are my two configuration files:
<VirtualHost *:80>
ServerAdmin info@insiteweb.xyz
ServerName insiteweb.xyz
ServerAlias www.insiteweb.xyz
DocumentRoot /var/www/insiteweb.xyz/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin info@moviezzz.nl
ServerName moviezzz.nl
ServerAlias www.moviezzz.nl
DocumentRoot /var/www/moviezzz.nl/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Inside the folders /var/www/moviezzz.nl/publichtml and /var/www/insiteweb.xyz/publichtml are both an index.html file. Yet I stil get send to the standard “ It works !
If you’re seeing this page via a web browser, it means you’ve setup Tomcat successfully. Congratulations!” page of apache.
Does anyone know what the problem might be?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×