I have a development server that has Ubuntu server 10开发者_如何学编程.10 with an ip of 192.168.0.175. When I enable the rewrite mod for apache2 and change the site config to allow rewrite then things get all messed up.
With rewrite turned off and allow rewrites to None then I type in 192.168.0.175/test
and the site loads, but with it all turned on it changes the address to www.192.168.0.175/test
and the site does not load.
Why is this happening?
www.192.168.0.175 is wrong. If you type www the browser assumes that is a domain name.
The Ip's should be prefixed with www
精彩评论