Monday, June 11, 2012

Simple apache configuration

nano /etc/httpd/conf/httpd.conf

NameVirtualHost 192.168.240.142
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
[VirtualHost 192.168.240.142]

    ServerAdmin root@www.sourav.com
    DocumentRoot /var/www/virtual/www.sourav.com/html
    ServerName www.sourav.com
    ErrorLog logs/www.sourav.com-error_log
    CustomLog logs/www.sourav.com-access_log common

[/VirtualHost]

No comments:

Post a Comment