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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess not working with Alias

Status
Not open for further replies.

Dronealone

IS-IT--Management
Mar 13, 2002
64
GB
Hi,

I'm running Apache 1.3.x using virtualhosts and have done a simple redirect:

(trimmed down)
<VirtualHost x.x.x.x>
ServerName ServerAdmin sysop@x.co.uk
DocumentRoot /home/users/x/www/
Alias /devftp /home/users/devftp/www
</VirtualHost>

The alias works fine, however when I put a .htaccess file into the /home/users/devftp/ it is not being read - has anybody any idea? Other .htaccess files work perfectly when not aliased.

Thanks
 
Hmmm, when I look at your config above I noticed that your "Alias" has a different directory path than that of your "DocumentRoot". Within your .htaccess file what directory path do you specify? If the path only includes your "DocumentRoot" try including the "Alias" directory as well.

ie:
<Directory "/home/users/devftp/...
</Directory>

I have seen problems in the past were the .htaccess does not work with aliased directories.

Michael


WarpZero Technologies
e-mail: webmaster@warpzero.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top