Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RedirectMatch + Rewrite Rule on 1/2 Ports?

Status
Not open for further replies.

wendi88

Technical User
Jan 30, 2007
4
US
Hi- I can't find a solution to satisfy *both* of the following scenarios with Redirect & ReWrite with only port 80 accessible externally.

1. If URL = forward to:
(preschool homepage)

2. IF URL = redirect to localhost:8080/intranet (or 127.0.0.1:8080/intranet) but display (private teacher area)

3. (Optional, but bonus points) Display the homepage without the "index.htm"

Here's what I have
==================

Listen 80
...
NameVirtualHost *:80

<VirtualHost *:80>
RedirectMatch permanent ^/$ </VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@preschool88.com
ServerName RewriteEngine On
RewriteRule ^/(.*) [L,P]
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /var/ ServerName 127.0.0.1
</VirtualHost>

ErrorDocument 404 /error.htm

===================

I'm hoping someone out there will save me!
Still looking through FAQs...

Thanks!
-Wendi

(Apache on Linux/Fedora Core 5)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top