Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]ProxyAutoConfig
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
beren43
n00b
n00b


Joined: 19 Dec 2015
Posts: 21

PostPosted: Thu Jan 14, 2016 5:27 pm    Post subject: [Solved]ProxyAutoConfig Reply with quote

I need to configure ProxyAutoConfig.
Do https://wiki.gentoo.org/wiki/ProxyAutoConfig.
I need to create a PAC file.
How and where ? )


Last edited by beren43 on Sat Feb 13, 2016 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Jan 15, 2016 11:15 am    Post subject: Reply with quote

The client has to be able to retrieve the pac file, i.e., you usually host it on a web server but you could also put it on your local file system and set the URL accordingly.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
beren43
n00b
n00b


Joined: 19 Dec 2015
Posts: 21

PostPosted: Fri Jan 15, 2016 3:33 pm    Post subject: Reply with quote

I'm using nginx. Where to put proxy.pac ? (path)
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Fri Jan 15, 2016 5:03 pm    Post subject: Reply with quote

It does not matter, any place inside your nginx' root, you just have to point your browser to the correct location.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
beren43
n00b
n00b


Joined: 19 Dec 2015
Posts: 21

PostPosted: Sat Jan 16, 2016 10:19 am    Post subject: Reply with quote

vim /etc/nginx/proxy.pac
Correctly ?
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Sat Jan 16, 2016 10:24 am    Post subject: Reply with quote

In the nginx configuration file you define the root directory which nginx uses for serving content. Look for 'root' in the configuration file and there you see in which directory you have to put the .pac file.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
beren43
n00b
n00b


Joined: 19 Dec 2015
Posts: 21

PostPosted: Sat Jan 16, 2016 10:43 am    Post subject: Reply with quote

vim var/www/localhost/htdocs/proxy.pac

Right ?
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Sat Jan 16, 2016 10:46 am    Post subject: Reply with quote

Probably, yes.
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
beren43
n00b
n00b


Joined: 19 Dec 2015
Posts: 21

PostPosted: Sat Jan 16, 2016 2:27 pm    Post subject: Reply with quote

It's weird. In /etc/nginx/nginx/nginx.conf in the server section in the section {...root /var/www/localhost/htdocs . But the htdocs directory does not exist. And I don't understand where to create the proxy.pac file
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum