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)
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)