www.webdeveloper.com
Results 1 to 2 of 2

Thread: How do I configure httpd.conf file?

  1. #1
    Join Date
    Dec 2008
    Posts
    76

    How do I configure httpd.conf file?

    Hi,
    How do I configure my conf file to allow me to enter a domain name as www.domain.com and domain.com in a web browser ?

    Here is what I use, and it works for www.domain.com


    <VirtualHost *:80>
    DocumentRoot /var/www/domain.com
    ServerName www.domain.com
    ServerAlias domain.com
    </VirtualHost>

    thanks in advance.

  2. #2
    Join Date
    Jun 2009
    Posts
    127
    Try to use the below format in your httpd.conf file and have a try:

    <VirtualHost IP address of your server:80>
    DocumentRoot /var/www/domain.com
    ServerName domain.com
    ServerAlias www.domain.com
    </VirtualHost>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles