Solved

serve a subdomain via a proxy ???

Posted on 2011-03-02
2
919 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:NeilT
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
NeilT earned 0 total points
Comment Utility
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:NeilT
Comment Utility
hope the answer I managed to find helps others
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Stop people from trying to get into my server 8 101
local dns 2 115
XAMPP 3 44
Re-negotiation handshake failed: Not accepted by client!? 8 177
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now