Jump to content
The Uniform Server Community
Tyssen

Problem accessing sites on a USB drive

Recommended Posts

I've installed uniformserver on a USB drive and used the Admin Virtual Host to set up a new host, and have followed the instructions in the wiki about how to get it to work for portable drives, (ie creating a PAC file and setting up my portable Firefox to use it as an automatic proxy, but when I try to access my host I get a 403 Forbidden error saying I don't have permission.

 

My hosts file looks like:

 

NameVirtualHost *
<VirtualHost *>
ServerName localhost:80
DocumentRoot /www
</VirtualHost>
##########VIRTUAL HOST SETUP##########
# MYSITE
<VirtualHost *>
ServerName mysite.local
DocumentRoot F:/mysite
</VirtualHost>

 

My Windows hosts file looks like:

 

127.0.0.1	   localhost
127.0.0.1	   localhost:80

127.0.0.1	mysite.local

 

and my PAC file looks like:

 

function FindProxyForURL(url, host)
{
 if (shExpMatch(url,"http://mysite.local/*")) return "PROXY 127.0.0.1";
 return "";
} 

 

Is there anything else I've missed or have done wrong? :D

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...