1 decade ago by madguru
Hi,
I'm new to setting up server etc. I have spent a good 6 hours with no luck in the end.
http://localhost/ displays It works!
http://localhost/impact/ displays not found.
http://localhost/impact/weltmeister.html displays not found.
Safari/Develop/Show Error Console shows now errors when trying to load these pages.
Mac OSX Snow Leopard
Installed mysql
Web Sharing Enabled
http.conf:
PHP line uncommented
Username modified
Server Name uncommented and set to: ServerName www.impact.local:80
<user>.conf set to:
<Directory "/Users/adnanmg/Sites/*">
Options Indexes MultiViews
</Directory>
/etc/hosts added line:
127.0.0.1 impact.local
/etc/apache2/extra/httpd-vhosts.conf:
removed other hosts and added:
<VirtualHost *:80>
DocumentRoot /Library/WebServer/Documents
ServerName localhost
</VirtualHost>
<VirtualHost *.80>
DocumentRoot "/Users/<username>/Sites/impact/"
ServerName impact.local
</VirtualHost>
I have made sure to run: sudo apachectl restart
after each change, and got to the point where console does not show any more errors.
After 4 hours of reading websites and trying things, I am still not closer to making it work. Any suggestions would be really appreciated. Thanks!
Adnan
I'm new to setting up server etc. I have spent a good 6 hours with no luck in the end.
http://localhost/ displays It works!
http://localhost/impact/ displays not found.
http://localhost/impact/weltmeister.html displays not found.
Safari/Develop/Show Error Console shows now errors when trying to load these pages.
Mac OSX Snow Leopard
Installed mysql
Web Sharing Enabled
http.conf:
PHP line uncommented
Username modified
Server Name uncommented and set to: ServerName www.impact.local:80
<user>.conf set to:
<Directory "/Users/adnanmg/Sites/*">
Options Indexes MultiViews
</Directory>
/etc/hosts added line:
127.0.0.1 impact.local
/etc/apache2/extra/httpd-vhosts.conf:
removed other hosts and added:
<VirtualHost *:80>
DocumentRoot /Library/WebServer/Documents
ServerName localhost
</VirtualHost>
<VirtualHost *.80>
DocumentRoot "/Users/<username>/Sites/impact/"
ServerName impact.local
</VirtualHost>
I have made sure to run: sudo apachectl restart
after each change, and got to the point where console does not show any more errors.
After 4 hours of reading websites and trying things, I am still not closer to making it work. Any suggestions would be really appreciated. Thanks!
Adnan