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 -> Apache View previous topic :: View next topic
Reply to topic   Topic: Virtual Host + ProxyPass + Aliases
Author
maquejp



Joined: 26 Jul 2010
Posts: 2

PostPosted: Mon 26 Jul '10 10:32    Post subject: Virtual Host + ProxyPass + Aliases Reply with quote

Hi,

I am trying to set up apache to use the proxypass (with success) and add alias
This is the part of the httpd.conf
Code:

    <VirtualHost *:80>
    ServerName s-83-faggin
    ServerAlias intranet.eahc.cec.eu.int
    ServerAdmin webmaster@s-83-faggin
    ProxyPass / http://localhost:81/VirtualHostBase/http/s-83-faggin:80/VirtualHostRoot/
    ProxyPassReverse / http://localhost:81/VirtualHostBase/http/s-83-faggin:80/VirtualHostRoot/
    </VirtualHost>
    <VirtualHost *:80>
    ServerName s-83-faggin
    ServerAlias app.intranet.eahc.cec.eu.int
    ServerAdmin webmaster@s-83-faggin
    ProxyPass / http://localhost:8090/VirtualHostBase/http/s-83-faggin:80/VirtualHostRoot/
    ProxyPassReverse / http://localhost:8090/VirtualHostBase/http/s-83-faggin:80/VirtualHostRoot/
    </VirtualHost>
<VirtualHost *:8090>
    ServerName s-83-faggin
    ServerAdmin webmaster@s-83-faggin
    DocumentRoot "D:\cf_www"   
</VirtualHost>


So if the user type: http://ourintranet the see the http://ourintranet:81
this is working well

Now I would like that when they time http://ourintranet/ancfmapp/ they should be redirected to the apache DocumentRoot as defined in the httpd.conf (d:\cf_www in my specific case)
I have done for the moment a second port listening, but I would like that the user does not have to type extra information.

Code:

Listen 8090
...
<VirtualHost *:8090>
    ServerAdmin webmaster@s-83-faggin
    DocumentRoot "D:\cf_www"
    ServerName s-83-faggin
</VirtualHost>

So if they type http://ourintranet:8090 they have access to the regular DocumentRoot

Thank you for your help

Forgot to say that the user have to enter through:
http://intranet.myorganisation
or
http://app.intranet.myorganisation

then the DNS does a CNAME (I have no hand on the DNS)
Back to top
maquejp



Joined: 26 Jul 2010
Posts: 2

PostPosted: Mon 26 Jul '10 11:56    Post subject: Reply with quote

Code:
#PLONE
#81 is the port of the PLONE httpd instance
#80 is the port as above for the apache httpd instance

    <VirtualHost *:80>
    ServerName s-intranet
    ServerAlias intranet.myorg
    ServerAlias app.intranet.myorg
    ServerAdmin webmaster@s-intranet

    ProxyPass /FusionChartsFree http://intranet.myorg:8090/FusionChartsFree
    ProxyPassReverse /FusionChartsFree http://intranet.myorg:8090/FusionChartsFree

    ProxyPass /FusionCharts_Evaluation http://intranet.myorg:8090/FusionCharts_Evaluation
    ProxyPassReverse /FusionCharts_Evaluation http://intranet.myorg:8090/FusionCharts_Evaluation

    ProxyPass /FusionMaps http://intranet.myorg:8090/FusionMaps
    ProxyPassReverse /FusionMaps http://intranet.myorg:8090/FusionMaps

    ProxyPass /dfs_stats http://intranet.myorg:8090/dfs_stats
    ProxyPassReverse /dfs_stats http://intranet.myorg:8090/dfs_stats

    ProxyPass / http://intranet.myorg:81/VirtualHostBase/http/s-intranet:80/VirtualHostRoot/
    ProxyPassReverse / http://intranet.myorg:81/VirtualHostBase/http/s-intranet:80/VirtualHostRoot/
    </VirtualHost>

#COLDFUSION
<VirtualHost *:8090>
    ServerName s-intranet
    ServerAdmin webmaster@s-intranet
    DocumentRoot "D:\cf_www"   
</VirtualHost>

I solved my problem with the above solution (I need to test further with all apps written in Coldfusion)
I need to add a Proxypass by app or "call to the root"/alias

But I am still waiting for some expert information, thanks
Back to top


Reply to topic   Topic: Virtual Host + ProxyPass + Aliases View previous topic :: View next topic
Post new topic   Forum Index -> Apache