Wildcard and virtalhost problem

Pshemko

New member
Joined
Nov 23, 2010
Messages
1
Hi all,

I have a problem with my virtualhost configuration.

I run wordpress as network site so I put this into my httpd configuration:
Code:
ServerAlias *.|DOMAIN|
and added A record.
And WP is working fine, I can create site as subdomains urls.

But I want to create separate site in subdomain like forum.domain.com in separate DocumentRoot. So I added this code:
Code:
|*if SUB="forum"|
|?DOCROOT=/home/admin/domains|
|*endif|

And created new subdomain in DA.

Apache created "forum" folder but wordpress get this subdomain as it's own and I don't have access to "forum" folder.

The wordpress htaccess looks like this:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]

How it should be configured correctly?
 
Back
Top