Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to run Apache and HTTPFileServer both on port 80? |
|
Author |
|
bars96
Joined: 28 Mar 2016 Posts: 4
|
Posted: Mon 28 Mar '16 16:52 Post subject: How to run Apache and HTTPFileServer both on port 80? |
|
|
I would to run Apache to host my web-sites (accessible via their domains, eg.: site.com) and HTTPFileServer (accessible via host machine IP-address, eg.: 95.31.41.51) but all of them on port 80. How to do it? Big thanks |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Tue 29 Mar '16 10:00 Post subject: |
|
|
You can use apache as a reverse proxy. A vhost for each site and a vhost with reverse proxy to the HTTPFileServer |
|
Back to top |
|
bars96
Joined: 28 Mar 2016 Posts: 4
|
Posted: Tue 29 Mar '16 16:03 Post subject: |
|
|
James Blond wrote: | You can use apache as a reverse proxy. A vhost for each site and a vhost with reverse proxy to the HTTPFileServer |
Thanks, but I have 500 Internal Server Error now. Web-sites works fine (ex.: mine.by), but 95.31.21.31 is not (working version is 95.31.21.31:8080). Configuration:
Code: | <VirtualHost *>
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ServerName localhost
ServerAlias 95.31.21.31 10.10.10.2
</VirtualHost> |
|
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7398 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 31 Mar '16 12:16 Post subject: |
|
|
please run httpd.exe -S. Since a 500 error is a config error
Do you load the needed proxy modules in apache?
for example
Code: |
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
|
|
|
Back to top |
|
bars96
Joined: 28 Mar 2016 Posts: 4
|
Posted: Thu 31 Mar '16 13:55 Post subject: |
|
|
Ohh, exactly! Big thanks!  |
|
Back to top |
|
|
|
|
|
|