Here is my apache configuration file.
I have two domain names running on same
ip but i want them
to point
to different webapps. But in this case both point
to the one intended for e-yantra.org.
If I copy paste akshar.co.in part before E-yantra.org both start pointing
to akshar.co.in
I have two
A DNS entries (one per domain name) pointing
to the same
IP.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.e-yantra.org
ServerAdmin
[email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride
All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride
All
Order allow,deny
allow
from all
</Directory>
<Directory /var/www/ci/>
Options Indexes FollowSymLinks MultiViews
AllowOverride
All
Order allow,deny
allow
from all
</Directory>
<Directory /var/www/db2/>
Options Indexes FollowSymLinks MultiViews
AllowOverride
All
Order allow,deny
allow
from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow
from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny
from all
Allow
from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.akshar.co.in
ServerAdmin
[email protected]
DocumentRoot /var/akshar.co.in
<Directory /var/akshar.co.in/>
Options Indexes FollowSymLinks MultiViews
AllowOverride
All
Order allow,deny
allow
from all
</Directory>
</VirtualHost>