Apache forward proxy incompatible with many virtual hosts Announcing the arrival of Valued...
What initially awakened the Balrog?
Tips to organize LaTeX presentations for a semester
What is the origin of 落第?
What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?
After Sam didn't return home in the end, were he and Al still friends?
GDP with Intermediate Production
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
Getting out of while loop on console
What is the difference between CTSS and ITS?
Should a wizard buy fine inks every time he want to copy spells into his spellbook?
Why complex landing gears are used instead of simple,reliability and light weight muscle wire or shape memory alloys?
As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?
Google .dev domain strangely redirects to https
A proverb that is used to imply that you have unexpectedly faced a big problem
How does light 'choose' between wave and particle behaviour?
License to disallow distribution in closed source software, but allow exceptions made by owner?
What does Turing mean by this statement?
Universal covering space of the real projective line?
Flight departed from the gate 5 min before scheduled departure time. Refund options
Mounting TV on a weird wall that has some material between the drywall and stud
How to force a browser when connecting to a specific domain to be https only using only the client machine?
How to change the tick of the color bar legend to black
The Nth Gryphon Number
Does silver oxide react with hydrogen sulfide?
Apache forward proxy incompatible with many virtual hosts
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Apache reverse proxyapache2 VirtualHost in Mac OS X home directorySSL support with Apache and ProxytunnelVirtual hosts & xamppHttpd error: not accessible symlink with -D FOREGROUNDGit and (gitweb) and SVN both over HTTPS at same timeapache got internal error when access ldap moduleWhy does Apache say “file does not exist” with this directory alias?Apache reverse proxy with alias, permission deniedCan't access virtualhosts on Centos/apache
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a Raspberry Pi running Arch Linux ARM that I use as an HTTP server, with Apache/2.4.29 (Unix). Recently, I have been trying to configure this machine as a forward proxy in order to use corkscrew or proxytunnel to connect to the Internet while using my laptop behind an evil firewall. So I added a virtual server with the following configuration:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName proxy.mydomain.com
ErrorLog "/var/log/httpd/proxy-error_log"
CustomLog "/var/log/httpd/proxy-access_log" common
#SetEnv force-proxy-request-1.0 1
#SetEnv proxy-nokeepalive 1
ProxyRequests On
ProxyVia Block
AllowCONNECT 443 563 22 XYZ
<Proxy *>
Require ip XXX.XXX.XXX.XXX
</Proxy>
# The reverse proxy works, but the forward doesn't
#ProxyPass /test https://google.it
</VirtualHost>
Besides that, I have two other virtual servers. The interesting thing is that the proxy works if it is the only virtual host enabled, but if I enable another vhost the proxy does not work anymore.
When the proxy does not work, I cannot use it with firefox (which says that the proxy is refusing connections), nor can I use it with corkscrew (which says that the proxy cannot connect to the server: method not allowed); also, in this situation the apache log file says "client denied by server configuration: /etc/httpd/htdocs". However, when I enable only the proxy virtual host, everything works, so it is not corkscrew's problem. Do someone know why? Thank you.
linux networking apache-http-server proxy virtual-host
add a comment |
I have a Raspberry Pi running Arch Linux ARM that I use as an HTTP server, with Apache/2.4.29 (Unix). Recently, I have been trying to configure this machine as a forward proxy in order to use corkscrew or proxytunnel to connect to the Internet while using my laptop behind an evil firewall. So I added a virtual server with the following configuration:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName proxy.mydomain.com
ErrorLog "/var/log/httpd/proxy-error_log"
CustomLog "/var/log/httpd/proxy-access_log" common
#SetEnv force-proxy-request-1.0 1
#SetEnv proxy-nokeepalive 1
ProxyRequests On
ProxyVia Block
AllowCONNECT 443 563 22 XYZ
<Proxy *>
Require ip XXX.XXX.XXX.XXX
</Proxy>
# The reverse proxy works, but the forward doesn't
#ProxyPass /test https://google.it
</VirtualHost>
Besides that, I have two other virtual servers. The interesting thing is that the proxy works if it is the only virtual host enabled, but if I enable another vhost the proxy does not work anymore.
When the proxy does not work, I cannot use it with firefox (which says that the proxy is refusing connections), nor can I use it with corkscrew (which says that the proxy cannot connect to the server: method not allowed); also, in this situation the apache log file says "client denied by server configuration: /etc/httpd/htdocs". However, when I enable only the proxy virtual host, everything works, so it is not corkscrew's problem. Do someone know why? Thank you.
linux networking apache-http-server proxy virtual-host
add a comment |
I have a Raspberry Pi running Arch Linux ARM that I use as an HTTP server, with Apache/2.4.29 (Unix). Recently, I have been trying to configure this machine as a forward proxy in order to use corkscrew or proxytunnel to connect to the Internet while using my laptop behind an evil firewall. So I added a virtual server with the following configuration:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName proxy.mydomain.com
ErrorLog "/var/log/httpd/proxy-error_log"
CustomLog "/var/log/httpd/proxy-access_log" common
#SetEnv force-proxy-request-1.0 1
#SetEnv proxy-nokeepalive 1
ProxyRequests On
ProxyVia Block
AllowCONNECT 443 563 22 XYZ
<Proxy *>
Require ip XXX.XXX.XXX.XXX
</Proxy>
# The reverse proxy works, but the forward doesn't
#ProxyPass /test https://google.it
</VirtualHost>
Besides that, I have two other virtual servers. The interesting thing is that the proxy works if it is the only virtual host enabled, but if I enable another vhost the proxy does not work anymore.
When the proxy does not work, I cannot use it with firefox (which says that the proxy is refusing connections), nor can I use it with corkscrew (which says that the proxy cannot connect to the server: method not allowed); also, in this situation the apache log file says "client denied by server configuration: /etc/httpd/htdocs". However, when I enable only the proxy virtual host, everything works, so it is not corkscrew's problem. Do someone know why? Thank you.
linux networking apache-http-server proxy virtual-host
I have a Raspberry Pi running Arch Linux ARM that I use as an HTTP server, with Apache/2.4.29 (Unix). Recently, I have been trying to configure this machine as a forward proxy in order to use corkscrew or proxytunnel to connect to the Internet while using my laptop behind an evil firewall. So I added a virtual server with the following configuration:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName proxy.mydomain.com
ErrorLog "/var/log/httpd/proxy-error_log"
CustomLog "/var/log/httpd/proxy-access_log" common
#SetEnv force-proxy-request-1.0 1
#SetEnv proxy-nokeepalive 1
ProxyRequests On
ProxyVia Block
AllowCONNECT 443 563 22 XYZ
<Proxy *>
Require ip XXX.XXX.XXX.XXX
</Proxy>
# The reverse proxy works, but the forward doesn't
#ProxyPass /test https://google.it
</VirtualHost>
Besides that, I have two other virtual servers. The interesting thing is that the proxy works if it is the only virtual host enabled, but if I enable another vhost the proxy does not work anymore.
When the proxy does not work, I cannot use it with firefox (which says that the proxy is refusing connections), nor can I use it with corkscrew (which says that the proxy cannot connect to the server: method not allowed); also, in this situation the apache log file says "client denied by server configuration: /etc/httpd/htdocs". However, when I enable only the proxy virtual host, everything works, so it is not corkscrew's problem. Do someone know why? Thank you.
linux networking apache-http-server proxy virtual-host
linux networking apache-http-server proxy virtual-host
asked Mar 10 '18 at 21:29
Federico MarottaFederico Marotta
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can't match the ServerName or ServerAlias for a forward proxy.
You can have a look at sslh or sshttp, they are ssh/http(s) multiplexers, to use both protocols on the same ports.
cheers
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1302297%2fapache-forward-proxy-incompatible-with-many-virtual-hosts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can't match the ServerName or ServerAlias for a forward proxy.
You can have a look at sslh or sshttp, they are ssh/http(s) multiplexers, to use both protocols on the same ports.
cheers
add a comment |
You can't match the ServerName or ServerAlias for a forward proxy.
You can have a look at sslh or sshttp, they are ssh/http(s) multiplexers, to use both protocols on the same ports.
cheers
add a comment |
You can't match the ServerName or ServerAlias for a forward proxy.
You can have a look at sslh or sshttp, they are ssh/http(s) multiplexers, to use both protocols on the same ports.
cheers
You can't match the ServerName or ServerAlias for a forward proxy.
You can have a look at sslh or sshttp, they are ssh/http(s) multiplexers, to use both protocols on the same ports.
cheers
answered 6 hours ago
dader51dader51
1134
1134
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1302297%2fapache-forward-proxy-incompatible-with-many-virtual-hosts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown