Hello Forum I have two websites on my server and I am trying to setup a NameVirtualHost. when you open a browser to connect to or the browser takes you to a web page named index of / the page also shows the two folders my websites are in, example.com and myothercompany.com. If you click on any of the two folders the site will open.
What I need is for the website to point to and open the index file.
Below is the commands I added to the httpd.conf
Thanks in advance
NameVirtualHost *
<VirtualHost *>
ServerName
DocumentRoot /home/
ServerAdmin webmaster@example.com
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common
</VirtualHost>
<VirtualHost *>
ServerName
DocumentRoot /home/
ServerAdmin webmaster@myothercompany.com
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common
</VirtualHost>
What I need is for the website to point to and open the index file.
Below is the commands I added to the httpd.conf
Thanks in advance
NameVirtualHost *
<VirtualHost *>
ServerName
DocumentRoot /home/
ServerAdmin webmaster@example.com
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common
</VirtualHost>
<VirtualHost *>
ServerName
DocumentRoot /home/
ServerAdmin webmaster@myothercompany.com
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common
</VirtualHost>