Code:
<VirtualHost *:80>
ServerName www.anishunix.com
ServerAlias anishunix
DocumentRoot "/usr/local/apache-tomcat-7.0.27/webapps/anishunix"
<Directory "/usr/local/apache-tomcat-7.0.27/webapps/anishunix">
DirectoryIndex index.jsp index.html
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
JkMount /anishunix* worker1
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/anishunix/.*\.(jpe?g|gif|png|css|js)
RewriteRule ^/$ http://www.anishunix.com/anishunix/ [R=302,L]
</VirtualHost>
This is my main domain virtual host configuration entry.
my requirement is going to host nearly 50 sub domains under this main domain. so i thought wildcard virtual hosting is good idea. please guide me to solve this thread.
main domain document root is /usr/local/apache-tomcat-7.0.27/webapps/anishunix
and the remaining 50 domains document root is /usr/local/apache-tomcat-7.0.27/webapps/anishunix/subdomains/
the same path for all subdomains.
please guide me to solve this thread. Thanks in Advance.
With Regards
Anish Kumar.V