LinuxQuestions.org
Review your favorite Linux distribution.
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 06-24-2008, 07:08 AM   #1
myhnet
LQ Newbie
 
Registered: Jun 2008
Posts: 15

Rep: Reputation: 0
about the URL when using Apache mod_proxy


hi, guys,

thx for your interesting in my topic. how can I deal with the URL issues?

here, I want to set up a cache server for my bbs, the configure file like below works. but, I met another problem, the URL problem.

the links which I wrote in the html files like
Code:
<a href=/readme.html>README</a>
when I click the keyword README, it always refers to http://bbs.test.com/readme.html, but in fact, I'd like it refer to http://mirror.test.com/readme.html.


how can I make it up?

thx very much

Code:
<VirtualHost *:80>
        ServerName mirror.test.com

AddDefaultCharset gb2312

#ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass / http://bbs.test.com/
ProxyPassReverse / http://bbs.test.com/


</VirtualHost>
 
  


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
apache httpd 2.2 and tomcat 5.5 and mod_proxy CowLoon Linux - Server 20 02-14-2008 04:39 PM
mod_proxy + url being rewritten to user a1danel Linux - Server 1 10-02-2007 12:46 PM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 08:57 PM
Apache 1.3 mod_proxy no cache mago Linux - Software 0 04-07-2006 12:39 PM
Webmin Through Apache using mod_proxy... ech310n Linux - General 0 01-28-2004 04:12 PM

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

All times are GMT -5. The time now is 10:25 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