0% found this document useful (0 votes)
129 views4 pages

Apache VirtualHost Cacti Setup

The document configures the Apache web server virtual host for port 80. It sets the document root to the Cacti monitoring system directory, defines directory settings for CGI scripts and log files. The configuration is tested by restarting Apache.

Uploaded by

nazloen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views4 pages

Apache VirtualHost Cacti Setup

The document configures the Apache web server virtual host for port 80. It sets the document root to the Cacti monitoring system directory, defines directory settings for CGI scripts and log files. The configuration is tested by restarting Apache.

Uploaded by

nazloen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

root@mrtg-server:/etc/apache2/sites-available# vim default

<VirtualHost *:80>

ServerAdmin webmaster@localhost

#DocumentRoot /var/www

DocumentRoot /usr/share/cacti/site/

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

#<Directory /var/www>

<Directory /usr/share/cacti/site/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

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 ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

"default" 33L, 767C written

root@mrtg-server:/etc/apache2/sites-available# /etc/init.d/apache2 restart

[....] Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName

... waiting apache2: Could not reliably determine the server's fully qualified domain name, using
127.0.1.1 for ServerName

. ok

root@mrtg-server:/etc/apache2/sites-available# ls

default default-ssl

root@mrtg-server:/etc/apache2/sites-available# cat default

<VirtualHost *:80>

ServerAdmin webmaster@localhost

#DocumentRoot /var/www

DocumentRoot /usr/share/cacti/site/
<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

#<Directory /var/www>

<Directory /usr/share/cacti/site/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

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 ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

root@mrtg-server:/etc/apache2/sites-available#

You might also like