Local folder not found offline
Posted: 12. November 2007 03:49
I've created a folder for my local work and access it in my browser using 'server.loc' in the address bar, but keep getting a not found message when working offline but I can access it when I'm online.
I renamed the default 'htdocs' folder to 'htdocs_orig' and created another 'htdocs' folder that contains my files.
I've got this at the bottom of 'httpd.conf':
And I've got this in my 'hosts' file:
I've had a similar setup working on another computer without any problems. What am I doing wrong?
Thanks
Av4tarnz
I renamed the default 'htdocs' folder to 'htdocs_orig' and created another 'htdocs' folder that contains my files.
I've got this at the bottom of 'httpd.conf':
- Code: Select all
NameVirtualHost 127.0.0.1:80
.
.
.
.
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:\Program Files\xampp\htdocs_orig"
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:\Program Files\xampp\htdocs\server"
ServerName server.loc
</VirtualHost>
And I've got this in my 'hosts' file:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 server.loc
I've had a similar setup working on another computer without any problems. What am I doing wrong?
Thanks
Av4tarnz