Thursday, February 23, 2012

Configuration of Apache Web Server

Configuration:

If you have Redhat/Fedora/CentOS Linux then edit Apache web server main configuration file /etc/httpd/conf/httpd.conf

If you have Debian/Ubuntu Linux then edit Apache web server main configuration file /etc/apache2/apache2.conf

uncoment or add the line

#AddHandler cgi-script .cgi
AddHandler cgi-script .cgi
If your Apache web server configuration directory is not /etc/httpd/, then it is necessary to copy /etc/httpd/conf.d/vpnttg.conf file to the appropriate folder.
For example in Debian or Ubuntu Linux distribution Apache web server configuration directory is /etc/apache2/
[root@system ~]# cp /etc/httpd/conf.d/vpnttg.conf /etc/apache2/conf.d/

Restart the web server:

[root@system ~]# service httpd restart

Point your web browser to:

http://your-server/vpnttg/