You are here
Document Root not Working
Hi Everybody
I installed Turnkey LAMP and it works great. I can access all the menus in webmin. I then uploaded my web site to var/www/green90. But once I want to access my web site I keep on getting an error message from firefox.
Oops! This link appears to be broken.
I insert the following address http://192.168.2.2/var/www/green90/ - Then it does not work, and with my wamp server on my PC the site runs perfectly.
When I insert http://192.168.2.2 - I can access the server.
I have been searching for 3 hours now and testing to try and solve the problem. I also set the permissions on the directory and all sub directories to 777 for testing, but still not.
This is the contents of my /sites-available/default
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/cert.pem
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
</VirtualHost>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
Please let me know how to fix this or what am I missing ?