Answer the question
In order to leave comments, you need to log in
Why does the apache start page run on the server instead of a specific site?
I need to set up a server for website hosting.
Everything seemed to be done as it should:
I added the paths for the site to the apache virtualhost config
:
/var/www/mysitename1.org/public_html
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName mysitename1.org
ServerAlias www.mysitename1.org
DocumentRoot /var/www/mysitename1.org/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
xxx.xxx.xxx.xxx mysitename1.org
/var/www/html/index.html
Answer the question
In order to leave comments, you need to log in
read the apache config carefully.
There is most likely a directive for the directory / that prohibits it, and below there is a directive for /var/www/html that allows it to be accessed...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question