Help with mod_rewrite

switch48
Posts: 9
Joined: Sun Jun 27, 2010 2:19 pm

Help with mod_rewrite

Postby switch48 » Sun Jun 27, 2010 2:40 pm

Ok I just cant seem to get this to work it is turned on but I cant install any script with a htaccess file ..
Any help will be most appreciated ..

I have checked phpinfo and it is in loaded modules but when i try to say install vanilla2 which has a htaccess file I get error page (500 internal server error) and the error log says ..../var/hda/web-apps/van2/html/.htaccess: RewriteEngine not allowed here....

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Help with mod_rewrite

Postby bigfoot65 » Mon Jun 28, 2010 4:55 am

Hello,

In order for me to get it working, I had to modify the web app .conf file. Replace a few lines in the area below the directory line.

For example, this is the code I used:

Options Indexes FollowSymLinks +ExecCGI
AddHandler fcgid-script .fcg
AllowOverride FileInfo Limit Options Indexes
Order allow,deny
Allow from all

So, find this area in the .conf file and replace it. Then, restart the web server and your app should work fine with the .htaccess files.

Hope this helps.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

switch48
Posts: 9
Joined: Sun Jun 27, 2010 2:19 pm

Re: Help with mod_rewrite

Postby switch48 » Thu Jul 01, 2010 2:06 am

Sweet cheers mate that did the trick but do I have to add it to every app conf file I create ? .

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Help with mod_rewrite

Postby bigfoot65 » Thu Jul 01, 2010 4:46 am

Great. Yes you will need to add it to any app that uses mod_rewrite. For the Amahi packaged apps, we have already incorporated it.

If you are packaging apps, it is considered a custom web option and the app type is then listed as custom. This will force the install script to automatically modify the .conf file using a different template for the application on install.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

tonmartinz
Posts: 1
Joined: Sun Apr 15, 2012 5:10 pm
Location: Byron Bay, Australia
Contact:

Re: Help with mod_rewrite

Postby tonmartinz » Sun Apr 15, 2012 6:14 pm

Thanks solved my .htaccess rewrite issues!

Who is online

Users browsing this forum: Bing [Bot] and 9 guests