Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Alias and Rewrite rule conflicting.
Post new topic Reply to topic
Author Message
Joshua Meadows (DemoRic)

Joined: 29 Dec 2004
Posts: 783
Location: S.E. Kansas

PostPosted: Fri Jul 01, 2005 4:10 pm Reply with quoteBack to top

I have a folder that used to be in my htdocs, but due to exe files inside was moved outside of htdocs, and then the php files were aliased.

Directory Tree Before Aliased:
|     |--music
|           |--docs
|           |--exe

Directory Tree After Moved & Aliased:

|     |--docs (aliased as music)
|     |--exe

My problem is that when I did this my rewrite rule now causes a 404 error. If I remove the rewrite rule then the folder is correctly loaded.

Alias Section:
Alias /music "C:/apache2triad/music/docs"
<Directory C:/apache2triad/music/docs>
   Options Indexes FollowSymLinks +Includes ExecCGI
   AllowOverride None
   Order deny,allow
   Allow from env=linked_from_here
   #Allow from all
   deny from all

Rewrite Rule:
RewriteCond %{REQUEST_URI} ^/music.*$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R,NC]

All pages were found in both http, and https in the old file layout, but on the new https results in 404's. Any ideas?

update, I just decided to revert to the old file structer, and just used some htaccess, and index.htm redirects to make sure persons don't get into the exe folders.
View user's profileSend private messageYahoo MessengerICQ Number
Display posts from previous:      
Post new topic Reply to topic

 Jump to:   

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT