LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2018, 05:17 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
How to make my local wordpress visited when proxy is running?


cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 hwy.hwy hwy

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 hwy.local
127.0.0.1 www.hwy.local

My wordpress build locally.
hwy.local/wp or 127.0.0.1/wp can visit my wordpress.
All actions changed after switchyproxy installed on my chrome.

Here is my switchyproxy setting.



Notice: `No Proxy for localhost; 127.0.0.1; <local>`

Input `127.0.0.1/wp` in chrome ,no problem ,the wordpress can be visited.
An error occured when to input `hwy.local/wp` in chrome.



It is no use to add `hwy.local` in `no proxy for`.
`No Proxy for localhost; 127.0.0.1; <local>;hwy.local`

How can i make `hwy.local/wp` visited when switchyproxy is running ?
Attached Thumbnails
Click image for larger version

Name:	switchproxy.png
Views:	9
Size:	56.6 KB
ID:	26776   Click image for larger version

Name:	error.png
Views:	9
Size:	11.6 KB
ID:	26777  
 
Old 01-21-2018, 09:48 PM   #2
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
function FindProxyForURL(url, host) {
if (shExpMatch(host, "hwy.local"))
{
return " 127.0.0.1:80 DIRECT";
}
return "SOCKS5 127.0.0.1:1080; DIRECT";
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy solution to monitor sites visited within a LAN yzT! Linux - Server 21 08-11-2014 01:15 PM
[SOLVED] How to update the plugin/software of the local wordpress site. satimis Linux - General 2 01-22-2014 09:04 AM
wordpress install on local machine fails sharky Linux - Software 1 03-02-2007 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration