Solved

serve a subdomain via a proxy ???

Posted on 2011-03-02
2
928 Views
Last Modified: 2012-06-27
HI

I'm currently using Apache 2.2 and proxying requests for a url (http://www.example.com/planning/) to an internal IP address (e.g. 192.10.11.12) and reverse proxying the same.

I've now been asked to set this up as a sub domain instead but I've not idea how to set up for example http://planning.example.com to serve the content on 192.10.11.12 (192.10.11.12 having no public access)

Any help appreciated.

Regards
Neil
0
Comment
Question by:Neil Thompson
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
Neil Thompson earned 0 total points
ID: 35017507
found it, uin httpd_vhost.conf file add

<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass / http://192.168.111.2/
ProxyPassReverse / http://192.168.111.2/
ServerName hostname.example.com
</VirtualHost>

0
 
LVL 3

Author Closing Comment

by:Neil Thompson
ID: 35017520
hope the answer I managed to find helps others
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apache web application(s) as Service Provider - ADFS 2.0 as IDP 4 129
Hosting application in Apache and Tomcat 1 120
How to analyze web traffic logs 10 116
Apache Issues 9 93
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question