How to use AliasMatch with Apache 2?

This is a discussion on How to use AliasMatch with Apache 2? within the Apache Web Server forums, part of the Web Server and Related Forums category; I have a site with virtual hosts and I need to do the following: when someone types this: http://www....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-04-2005
DigDug
 
Posts: n/a
Default How to use AliasMatch with Apache 2?

I have a site with virtual hosts and I need to do the following:

when someone types this:
http://www.mydomain.com/stats

where mydomain is the virtual domain

Apache has to redirect the files to
/HTMLRoot/stats/www.mydomain.com

The normal documentroot is
/HTMLRoot/htdocs/www.mydomain.com

I think I can do this by adding this to httpd.conf:
AliasMatch ^/stats(.*) /HTMLRoot/stats/$1
<Directory /HTMLRoot/stats/>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

but it doesn't work... What am I doing wrong?


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0