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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th February 2010, 09:59
xxfog xxfog is offline
Member
 
Join Date: Jan 2010
Posts: 30
Thanks: 5
Thanked 1 Time in 1 Post
Default mod_rewrite again and general question for adding it into apache-special

Hi folks,

i used search for hours now, but did not find a answer to my question, I hope someone can help me:

I am Using Wordpress for some of my clients
Now I want to set up the following
in Sites > Optionen > Apache Direktiven

I wrote:

<IfModule mod_rewrite.c>
<Directory /var/www/[sitename]/web/>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Directory>
</IfModule>

Does ISPConfig insert the Sitename automatically (as a VARIABLE) if I write [sitename] or do I have to write the sitename in format domain.tld by myself?

Thanks
Steffan
__________________
greetz Steffan

Need help? Try out irc://irc.quakenet.org/ISPConfig
Reply With Quote
Sponsored Links
  #2  
Old 11th February 2010, 12:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,444
Thanks: 813
Thanked 5,209 Times in 4,085 Posts
 
Default

You have to write the sitename yourself. But its also not needed, just leave out the directory directives as the rules are inserted into the vhost, they will get applied to this vhost only.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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


All times are GMT +2. The time now is 16:57.


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