Search This Blog

Sunday, May 10, 2015

Name-based Virtual Hosting

/etc/httpd/conf/httpd.conf

NameVirtualHost *:80

< VirtualHost *:80 >
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/html/drupal
   ServerName example.com
    ErrorLog logs/example.com-error_log
    CustomLog logs/example.com-access_log common
</ VirtualHost >

service httpd restart

No comments: