HOW TO: apache virtual hosts behind wingate

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

HOW TO: apache virtual hosts behind wingate

Postby awelum » Nov 15 05 2:02 pm

Hi,
do you know the solution to have apache virtual hosts behind wingate

In fact I would like to have to host two web site on my computer.

I'm using wingate 6.10 and easyphp 1.8 ( includes apache and mySQL)

Is ther any special conf for wingate to allow this

regards
awelum
awelum
 
Posts: 2
Joined: Nov 15 05 1:52 pm

Postby adrien » Nov 15 05 5:54 pm

are these 2 web sites on the same computer/IP?

If so, just redirect inbound connections on port 80 to the internal server in the Extended Networking -> Port Security -> Incoming connections from the Internet port table.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby awelum » Nov 15 05 7:20 pm

Thanks for your quick response.
Yes both are on same IP

I was using the www proxy function to pipe server requests to my apache web server on 8080 port for my first web site
Has I understand I can use your solution in order to use two web sites instead one.
Shall I keep also the www proxy wingate function in your way of work , it is a little bit confuse for me.

Thanks per advance
jean
awelum
 
Posts: 2
Joined: Nov 15 05 1:52 pm

Postby adrien » Nov 15 05 8:56 pm

Hi

Virtual hosting is supported in Apache (and other web servers) by using the "Host: " tag in the HTTP request.

So any method that will get the connection through to your internal web server without altering it will work. The best performance method of doing this is with a redirect in Extended Networking.

Once you did this, it would pay to not bind the WWW proxy to the external interface.

So, to do this, go to GateKeeper, log into WinGate, select

Extended Networking -> Port Security.

* Click on the add button,
* enter the range of ports port you want users to access the web server on (Probably 80 to 80),
* select "redirect"
* enter the IP address you want to redirect to on your LAN - you will need to override the port to 8080 since your apache server is running on that port.
* click OK, then ok.

So now connections from the internet on port 80 will be piped through to your apache server, and however many virtual hosts are running on it will be available from the Internet.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Google [Bot] and 29 guests