Run http server behind proxy The 2019 Stack Overflow Developer Survey Results Are InUsing ssh...
If a poisoned arrow's piercing damage is reduced to 0, do you still get poisoned?
How was Skylab's orbit inclination chosen?
Why could you hear an Amstrad CPC working?
Patience, young "Padovan"
Should I use my personal or workplace e-mail when registering to external websites for work purpose?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
It's possible to achieve negative score?
How come people say “Would of”?
Why is Grand Jury testimony secret?
"What time...?" or "At what time...?" - what is more grammatically correct?
Springs with some finite mass
Can't find the latex code for the ⍎ (down tack jot) symbol
Why isn't airport relocation done gradually?
The difference between dialogue marks
Idiomatic way to prevent slicing?
Is domain driven design an anti-SQL pattern?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Could JWST stay at L2 "forever"?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?
Lethal sonic weapons
Inline version of a function returns different value then non-inline version
Looking for best latin term for a legal document
How long do I have to send payment?
Run http server behind proxy
The 2019 Stack Overflow Developer Survey Results Are InUsing ssh and corkscrew/proxychains behing a HTTP proxyHow to avoid restarting Apache proxy when you restart CouchDBWhy does squid reject this multipart-form-data POST from curl?Apache2 and SSL, some users can't connect through proxyLimiting users on a Squid proxy serverApache SSL Proxy can't find client certificate?Apache frontend for Tomcat, proxy securityConfigure Squid as an HTTPS forward proxy?Put a server or two behind a proxypython get-pip.py not working behind proxy
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I've been trying to get lighttpd or apache2 (I prefer lighttpd) to work behind a proxy but no luck so far.
What I want is to run lighttpd (or port 80) behind a proxy, so that when someone goes to some.website.com, and the DNS for that domain is pointed to the IP address of the proxy server, they end up on my http server's page.
This would allow me to use the server's resources, while keeping it's IP address hidden.
Unfortunately, using the proxychains
program did not work. For lighttpd it gave the error getaddrinfo failed: Unknown error ' ::'
and proxychains apache2 start
started just fine, but it didn't seem to do anything. I did test if the proxychains program itself worked, and it used the proxy just fine using curl on a what-is-my-ip type of website.
If you're wondering; I am temporarily using a homeserver, and I don't want to make my IP address public.
Any ideas? Both a HTTPS proxy (squid) or a SOCKS5 (dante) proxy will do just fine.
proxy http debian-squeeze
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've been trying to get lighttpd or apache2 (I prefer lighttpd) to work behind a proxy but no luck so far.
What I want is to run lighttpd (or port 80) behind a proxy, so that when someone goes to some.website.com, and the DNS for that domain is pointed to the IP address of the proxy server, they end up on my http server's page.
This would allow me to use the server's resources, while keeping it's IP address hidden.
Unfortunately, using the proxychains
program did not work. For lighttpd it gave the error getaddrinfo failed: Unknown error ' ::'
and proxychains apache2 start
started just fine, but it didn't seem to do anything. I did test if the proxychains program itself worked, and it used the proxy just fine using curl on a what-is-my-ip type of website.
If you're wondering; I am temporarily using a homeserver, and I don't want to make my IP address public.
Any ideas? Both a HTTPS proxy (squid) or a SOCKS5 (dante) proxy will do just fine.
proxy http debian-squeeze
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've been trying to get lighttpd or apache2 (I prefer lighttpd) to work behind a proxy but no luck so far.
What I want is to run lighttpd (or port 80) behind a proxy, so that when someone goes to some.website.com, and the DNS for that domain is pointed to the IP address of the proxy server, they end up on my http server's page.
This would allow me to use the server's resources, while keeping it's IP address hidden.
Unfortunately, using the proxychains
program did not work. For lighttpd it gave the error getaddrinfo failed: Unknown error ' ::'
and proxychains apache2 start
started just fine, but it didn't seem to do anything. I did test if the proxychains program itself worked, and it used the proxy just fine using curl on a what-is-my-ip type of website.
If you're wondering; I am temporarily using a homeserver, and I don't want to make my IP address public.
Any ideas? Both a HTTPS proxy (squid) or a SOCKS5 (dante) proxy will do just fine.
proxy http debian-squeeze
I've been trying to get lighttpd or apache2 (I prefer lighttpd) to work behind a proxy but no luck so far.
What I want is to run lighttpd (or port 80) behind a proxy, so that when someone goes to some.website.com, and the DNS for that domain is pointed to the IP address of the proxy server, they end up on my http server's page.
This would allow me to use the server's resources, while keeping it's IP address hidden.
Unfortunately, using the proxychains
program did not work. For lighttpd it gave the error getaddrinfo failed: Unknown error ' ::'
and proxychains apache2 start
started just fine, but it didn't seem to do anything. I did test if the proxychains program itself worked, and it used the proxy just fine using curl on a what-is-my-ip type of website.
If you're wondering; I am temporarily using a homeserver, and I don't want to make my IP address public.
Any ideas? Both a HTTPS proxy (squid) or a SOCKS5 (dante) proxy will do just fine.
proxy http debian-squeeze
proxy http debian-squeeze
asked Apr 19 '12 at 13:07
natlinatli
15010
15010
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 11 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
The proxy that you chose must support "reverse HTTP proxying". See: http://en.wikipedia.org/wiki/Reverse_proxy
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
add a comment |
You mentioned that squid would work just fine. Is there a reason you didn't just fire up squid? It's probably the simplest proxy solution to configure.
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
add a comment |
Using Apache and mod_proxy you could write one or more simple rules such as
ProxyPass /foo http://internal-ip/bar
This way the Apache server hides the internal server(s).
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then addedProxyPass / http://localhost:5555
to the config, but it didn't do anything.
– natli
Apr 19 '12 at 13:44
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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%2fserverfault.com%2fquestions%2f381118%2frun-http-server-behind-proxy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
The proxy that you chose must support "reverse HTTP proxying". See: http://en.wikipedia.org/wiki/Reverse_proxy
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
add a comment |
The proxy that you chose must support "reverse HTTP proxying". See: http://en.wikipedia.org/wiki/Reverse_proxy
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
add a comment |
The proxy that you chose must support "reverse HTTP proxying". See: http://en.wikipedia.org/wiki/Reverse_proxy
The proxy that you chose must support "reverse HTTP proxying". See: http://en.wikipedia.org/wiki/Reverse_proxy
answered Apr 19 '12 at 13:37
Mircea VutcoviciMircea Vutcovici
13.2k33966
13.2k33966
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
add a comment |
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
This isn't an answer to my question ;O
– natli
Apr 19 '12 at 13:42
add a comment |
You mentioned that squid would work just fine. Is there a reason you didn't just fire up squid? It's probably the simplest proxy solution to configure.
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
add a comment |
You mentioned that squid would work just fine. Is there a reason you didn't just fire up squid? It's probably the simplest proxy solution to configure.
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
add a comment |
You mentioned that squid would work just fine. Is there a reason you didn't just fire up squid? It's probably the simplest proxy solution to configure.
You mentioned that squid would work just fine. Is there a reason you didn't just fire up squid? It's probably the simplest proxy solution to configure.
answered Apr 19 '12 at 14:42
TadTad
78210
78210
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
add a comment |
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
I don't know how to use the http server behind the squid proxy.
– natli
Apr 19 '12 at 19:51
add a comment |
Using Apache and mod_proxy you could write one or more simple rules such as
ProxyPass /foo http://internal-ip/bar
This way the Apache server hides the internal server(s).
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then addedProxyPass / http://localhost:5555
to the config, but it didn't do anything.
– natli
Apr 19 '12 at 13:44
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
add a comment |
Using Apache and mod_proxy you could write one or more simple rules such as
ProxyPass /foo http://internal-ip/bar
This way the Apache server hides the internal server(s).
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then addedProxyPass / http://localhost:5555
to the config, but it didn't do anything.
– natli
Apr 19 '12 at 13:44
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
add a comment |
Using Apache and mod_proxy you could write one or more simple rules such as
ProxyPass /foo http://internal-ip/bar
This way the Apache server hides the internal server(s).
Using Apache and mod_proxy you could write one or more simple rules such as
ProxyPass /foo http://internal-ip/bar
This way the Apache server hides the internal server(s).
edited Apr 19 '12 at 14:59
Ladadadada
22k54881
22k54881
answered Apr 19 '12 at 13:37
erikxiverikxiv
127212
127212
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then addedProxyPass / http://localhost:5555
to the config, but it didn't do anything.
– natli
Apr 19 '12 at 13:44
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
add a comment |
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then addedProxyPass / http://localhost:5555
to the config, but it didn't do anything.
– natli
Apr 19 '12 at 13:44
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then added
ProxyPass / http://localhost:5555
to the config, but it didn't do anything.– natli
Apr 19 '12 at 13:44
I already tried mod_proxy. I set up an ssh connection to the proxy server in Daemon mode using port 5555, and then added
ProxyPass / http://localhost:5555
to the config, but it didn't do anything.– natli
Apr 19 '12 at 13:44
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I've probably misunderstood something. Why SSH, why did you set up a connection and why localhost? I though the scenario was that a HTTP reqyest was made from the Internet to the Proxyy server, which then redirected the HTTP request to the internal server?
– erikxiv
Apr 19 '12 at 13:47
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I should have been more clear, this is why I used SSH to get the proxy connection: link to article . And yes, that's exactly what I'm trying to do.
– natli
Apr 19 '12 at 13:53
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
I believe that proxychains allow you to start a program on your client machine and route all the network traffic from that program through SSH to your SSH server, essentially acting as if the program (such as a web browser) were running on the SSH server (inside your local network). Is that what you want to achieve? If so, you should not use neither Apache nor lighttpd, but only proxychains.
– erikxiv
Apr 19 '12 at 14:32
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
Proxychains didn't do anything, as I stated in my question. I don't know why it doesn't just work.. it should ;/ And how would I be serving web pages if I wasn't using apache or lighttpd? I'm trying to run a server here, not visit some website using a proxy. Someone request page -> Proxy sends request to http server -> http server serves page to proxy server -> proxy server forwards page to requester.
– natli
Apr 19 '12 at 19:52
add a comment |
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f381118%2frun-http-server-behind-proxy%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