Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 22nd April 2006, 18:13
Geoinline Geoinline is offline
Member
 
Join Date: Nov 2005
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default apache directives

when i add the contence of my rails .htaccess file to the apache directives field in ispconfig ..

the directives are written in to /etc/apache2/vhosts like this

Code:
# AddHandler fcgid-script .fcgi # NOT SUPPORTED!
# AddHandler cgi-script .cgi # NOT SUPPORTED!
# Options +FollowSymLinks +ExecCGI # NOT SUPPORTED!
#  # NOT SUPPORTED!
# RewriteRule ^$ index.html [QSA] # NOT SUPPORTED!
# RewriteRule ^([^.]+)$ $1.html [QSA] # NOT SUPPORTED!
# RewriteCond %{REQUEST_FILENAME} !-f # NOT SUPPORTED!
#  # NOT SUPPORTED!
# RewriteRule ^(.*)$ ispatch.fcgi [QSA,L] # NOT SUPPORTED!
#  # NOT SUPPORTED!
# RewriteBase /var/www/web17/cgi-bin/testapp # NOT SUPPORTED!
#  # NOT SUPPORTED!
# ErrorDocument 500 '<h2>Application error</h2>Rails application failed to start properly' # NOT SUPPORTED!
#  # NOT SUPPORTED!
what directives are supported?

Last edited by Geoinline; 22nd April 2006 at 18:16.
Reply With Quote
Sponsored Links
  #12  
Old 23rd April 2006, 13:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

ISPConfig can not decide which of the directives is not supported. You can try to add the directives directly in this vhost in the Vhost_ispconfig.conf file. Then run "httpd -t" and check the error message.

Make a backup of Vhost_ispconfig.conf file first!
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 24th April 2006, 02:23
Geoinline Geoinline is offline
Member
 
Join Date: Nov 2005
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the info. I've played around with the Vhost file a little.. it seems silly to put the .htaccess directives in here..

Is it possible to enable the use of .htaccess files? perhaps just for a specific directory.
Reply With Quote
  #14  
Old 24th April 2006, 09:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,814
Thanks: 821
Thanked 5,340 Times in 4,189 Posts
Default

You can chenge this part of your apache configuration:

Quote:
<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

to:

Quote:
<Directory /home/www/*/web>
Options +Includes +FollowSymlinks -Indexes
AllowOverride All
Order allow,deny
Allow from all

<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

To enable all directives in .htaccess. If you want to make this only for one website, you can make a new directive block for this site below just before the Vhost_ispconfig.conf include.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 25th April 2006, 02:28
Geoinline Geoinline is offline
Member
 
Join Date: Nov 2005
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for all your help. I finally got it working!
Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DSPAM tutorial bernd Suggest HOWTO 27 10th January 2007 16:33
Ruby on Ispconfig? city General 2 22nd March 2006 02:09
Ruby on Rails pontifex General 0 11th March 2006 16:32
I have a small problem with this tutorial :Building A Debian DNS System ajoian HOWTO-Related Questions 1 25th February 2006 12:28


All times are GMT +2. The time now is 04:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.