Voldemort Posted April 18, 2007 Share Posted April 18, 2007 I installed XAMPP on my 4 GB flash drive, and I was wondering if there was a way to make it so I don't have to use localhost to access the files. My school blocks localhost under it's filter, and I'd rather not use my proxy every time I want to test a PHP file. It's installed in F:\Server So basically, can a change a setting so I can use F:\Server\file.php instead of http://localhost/file.php? Oh, and I can't use 127.0.0.1 - it blocks all IPs. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 18, 2007 Share Posted April 18, 2007 You cannot change from localhost unless you change the alias in the host file. localhost is an alias of 127.0.0.1 There is not a setting in Apache that changes this. Quote Link to comment Share on other sites More sharing options...
Voldemort Posted April 18, 2007 Author Share Posted April 18, 2007 Okay, I guess I'll use the proxy. Thanks anyways Quote Link to comment Share on other sites More sharing options...
chronister Posted April 21, 2007 Share Posted April 21, 2007 You can set up a V-host file and use that name. See my post about xampp v-host config at http://www.phpfreaks.com/forums/index.php/topic,136463.0.html *edit* I just realized that you would have to edit the host file to respond to that name... have you tried simply typing 127.0.0.1 in the address bar? Does it block that to? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 21, 2007 Share Posted April 21, 2007 You can set up a V-host file and use that name. See my post about xampp v-host config at http://www.phpfreaks.com/forums/index.php/topic,136463.0.html *edit* I just realized that you would have to edit the host file to respond to that name... have you tried simply typing 127.0.0.1 in the address bar? Does it block that to? Voldemort said 127.0.0.1 didn't work: Oh, and I can't use 127.0.0.1 - it blocks all IPs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.