logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: How to run Apache and HTTPFileServer both on port 80?
Author
bars96



Joined: 28 Mar 2016
Posts: 4

PostPosted: Mon 28 Mar '16 16:52    Post subject: How to run Apache and HTTPFileServer both on port 80? Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 29 Mar '16 10:00    Post subject: Reply with quote

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

PostPosted: Tue 29 Mar '16 16:03    Post subject: Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 31 Mar '16 12:16    Post subject: Reply with quote

please run httpd.exe -S. Since a 500 error is a config error Wink

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

PostPosted: Thu 31 Mar '16 13:55    Post subject: Reply with quote

Ohh, exactly! Big thanks! Smile
Back to top


Reply to topic   Topic: How to run Apache and HTTPFileServer both on port 80? View previous topic :: View next topic
Post new topic   Forum Index -> Other Software