Organizational Research By

Surprising Reserch Topic

Question:Apache virtual domain configuration with Ubuntu Dapper/Hardy:


Ububntu separates out each virtual domain into a separate configuration file held in the directory /etc/apache2/sites-available/. When the site domain is to become active, a soft link is created to the directory /etc/apache2/sites-enabled/.Example: /etc/apache2/sites-available/supercorp

 

 


asked Sep 13, 2013 in LINUX by anonymous
edited Sep 12, 2013
0 votes
23 views



Related Hot Questions

2 Answers

0 votes

 

02        ServerName supercorp.com
03        ServerAlias www.supercorp.com
04        ServerAdmin webmaster@localhost
05
06        DocumentRoot /home/supercorp/public_html/home
07        
08                Options FollowSymLinks
09                AllowOverride None
10        
11        
12                Options Indexes FollowSymLinks MultiViews
13                IndexOptions SuppressLastModified SuppressDescription
14                AllowOverride All
15                Order allow,deny
16                allow from all
17        
18
19        ScriptAlias /cgi-bin/ /home/supercorp/cgi-bin/
20        
21                AllowOverride None
22                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
23                Order allow,deny
24                Allow from all
25        
26
27        ErrorLog /var/log/apache2/supercorp.com-error.log
28
29        # Possible values include: debug, info, notice, warn, error,
30        # crit, alert, emerg.
31        LogLevel warn
32        CustomLog /var/log/apache2/supercorp.com-access.log combined
33        ServerSignature On
34
 
 
 
Enable domain:
Create soft link:
Manually: ln -s /etc/apache2/sites-available/supercorp /etc/apache2/sites-enabled/supercorp
Use Ubuntu scripts a2ensite/a2dissite. Type command and it will prompt you as to which site you would like to enable or disable.
Restart Apache:
apache2ctl graceful
or
/etc/init.d/apache2 restart
or
/etc/init.d/apache2 reload
Also note that Apache modules can also be enabled/disabled with scripts a2enmod/a2dismod.
Man pages:
 
a2ensite/a2dissite (Ubuntu: Apache 2 enable/disable site)
apache2ctl
 

 

answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes

 

02        ServerName supercorp.com
03        ServerAlias www.supercorp.com
04        ServerAdmin webmaster@localhost
05
06        DocumentRoot /home/supercorp/public_html/home
07        
08                Options FollowSymLinks
09                AllowOverride None
10        
11        
12                Options Indexes FollowSymLinks MultiViews
13                IndexOptions SuppressLastModified SuppressDescription
14                AllowOverride All
15                Order allow,deny
16                allow from all
17        
18
19        ScriptAlias /cgi-bin/ /home/supercorp/cgi-bin/
20        
21                AllowOverride None
22                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
23                Order allow,deny
24                Allow from all
25        
26
27        ErrorLog /var/log/apache2/supercorp.com-error.log
28
29        # Possible values include: debug, info, notice, warn, error,
30        # crit, alert, emerg.
31        LogLevel warn
32        CustomLog /var/log/apache2/supercorp.com-access.log combined
33        ServerSignature On
34
 
 
 
Enable domain:
Create soft link:
Manually: ln -s /etc/apache2/sites-available/supercorp /etc/apache2/sites-enabled/supercorp
Use Ubuntu scripts a2ensite/a2dissite. Type command and it will prompt you as to which site you would like to enable or disable.
Restart Apache:
apache2ctl graceful
or
/etc/init.d/apache2 restart
or
/etc/init.d/apache2 reload
Also note that Apache modules can also be enabled/disabled with scripts a2enmod/a2dismod.
Man pages:
 
a2ensite/a2dissite (Ubuntu: Apache 2 enable/disable site)
apache2ctl
 

 

answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...