LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2008, 03:11 PM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
multiple url's in apache


Dear all,

We have configured REVERSE PROXY such that a particular URL
(https) is getting redirected to the internal url like as follows :


ProxyRequests Off
ProxyPass /OA_HTML http://test.com:8001/OA_HTML
ProxyPassReverse /OA_HTML http://test.com:8001/OA_HTML

ProxyPass /pls http://test.com:8001/pls
ProxyPassReverse /pls http://test.com:8001/pls

Now we need to have one more Virtual URL in this conf file such that using that URL it should redirect to one more server ?..

Is this possible ?.. If so, please tell me how ?


Yusuf
 
Old 08-20-2008, 07:48 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you mean that you have a URL that you want to redirect to a different box? That's not a problem - you can have:
Code:
ProxyRequests Off
ProxyPass /OA_HTML http://test.com:8001/OA_HTML
ProxyPassReverse /OA_HTML http://test.com:8001/OA_HTML

ProxyPass /pls http://test.com:8001/pls
ProxyPassReverse /pls http://test.com:8001/pls

ProxyPass /someother http://anotherbox.com/
ProxyPassReverse /someother http://anotherbox.com/
Or did you mean that you want more than one virtual HTTPS host on the one IP address? Apache only supports a single HTTPS host on an IP address (name based virtual hosting). If you want multiple HTTPS virtual hosts you should look at IP based virtual hosting. You can have one HTTPS and several HTTP virtual hosts on the one IP address though. There's more info here:
http://httpd.apache.org/docs/2.0/ssl...aq.html#vhosts
http://httpd.apache.org/docs/2.0/ssl...q.html#vhosts2
http://httpd.apache.org/docs/2.0/vhosts/name-based.html
 
Old 08-21-2008, 01:18 AM   #3
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Original Poster
Rep: Reputation: 30
Thanks a lot steve for the useful info. Anyway, I need something like this ..

The reverse proxy URL is : https://test.world.com
I want to have one more virtual URL for the above like : http://sample.world.com

such that

ProxyPass http://anotherbox.com/
ProxyPassReverse http://sample.world.com http://anotherbox.com


Any idea ?

Thanks a lot

Yusuf

Quote:
Originally Posted by gilead View Post
Do you mean that you have a URL that you want to redirect to a different box? That's not a problem - you can have:
Code:
ProxyRequests Off
ProxyPass /OA_HTML http://test.com:8001/OA_HTML
ProxyPassReverse /OA_HTML http://test.com:8001/OA_HTML

ProxyPass /pls http://test.com:8001/pls
ProxyPassReverse /pls http://test.com:8001/pls

ProxyPass /someother http://anotherbox.com/
ProxyPassReverse /someother http://anotherbox.com/
Or did you mean that you want more than one virtual HTTPS host on the one IP address? Apache only supports a single HTTPS host on an IP address (name based virtual hosting). If you want multiple HTTPS virtual hosts you should look at IP based virtual hosting. You can have one HTTPS and several HTTP virtual hosts on the one IP address though. There's more info here:
http://httpd.apache.org/docs/2.0/ssl...aq.html#vhosts
http://httpd.apache.org/docs/2.0/ssl...q.html#vhosts2
http://httpd.apache.org/docs/2.0/vhosts/name-based.html

Last edited by yusufs; 08-21-2008 at 01:41 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Apache and PHPs hitman001 Linux - Software 0 03-22-2007 09:01 AM
Redirectin URL's landuchi Linux - Networking 2 05-05-2006 01:54 PM
Multiple aliases in apache 1.3.33 mdcapt Linux - Networking 1 02-12-2006 07:07 AM
Multiple Apache Sites, on Multiple IP's, on Same Box?? RickyJ Linux - General 1 06-19-2003 10:55 AM
Multiple Apache Sites, on Multiple IP's, on Same Box?? RickyJ Linux - Software 0 06-19-2003 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration