Forum archive
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 ?
Hi I tried the url above http://192.168.2.2/green90/ with no luck yet.
I have pasted the result from Live HTTP Headers:
#request# GET http://192.168.2.2/green90
GET /green90
#request# GET http://linkhelp.clients.google.com/tbproxy/lh/fixurl?url=http%3A%2F%2F192.168.2.2%2Fgreen90&sourceid=navclient-ff&hl=en&sd=com.na&error=http404
#redirect# GET /tbproxy/lh/fixurl?url=http%3A%2F%2F192.168.2.2%2Fgreen90&sourceid=navclient-ff&hl=en&sd=com.na&error=http404
#request# GET http://csi.gstatic.com/csi?v=3&s=linkdoctor&action=opt&srt=782&tran=-5&e=&rt=ol.63
GET /csi?v=3&s=linkdoctor&action=opt&srt=782&tran=-5&e=&rt=ol.63
This same error comes with the other urls as well. It is like my computer does not even send the request to my server.
This is the result I get when I just use the http://www.192.168.2.2:
#request# GET http://192.168.2.2/
GET /
#request# GET http://192.168.2.2/css/ui.tabs.css
#request# GET http://192.168.2.2/css/base.css
#request# GET http://192.168.2.2/js/jquery-1.2.6.js
#request# GET http://192.168.2.2/js/ui.core.js
#request# GET http://192.168.2.2/js/ui.tabs.js
#request# GET http://192.168.2.2/images/shell.png
#request# GET http://192.168.2.2/images/webmin.png
#request# GET http://192.168.2.2/images/phpmyadmin.png
#request# GET http://192.168.2.2/images/tab.png
Hope somebody can help. Thanks