Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Location
    ithaca, ny
    Posts
    30

    (Moved to a new server) Urgent help needed in setting up dynamic VirtualHost

    Hey all,
    I just moved to my own server and am having desperate problems w/ setting up dynamic VirtualHost. I've already added the following to my DNS zone:
    *.domain.com. 14400 IN A IP.ADDRESS

    This is what I have in my httpd.conf file for VirtualHost:

    Code:
    <VirtualHost IP.ADDRESS:80>
    DocumentRoot /home/username/public_html
    ServerPath /home/username/public_html
    Byteslog domlogs/domain.com-bytes_log
    ServerName www.domain.com
    ServerAlias *.domain.com
    </VirtualHost>

    However, none of the subdomains are loading for me. I am receiving a perpetual "Page cannot be displayed" error.

    Please help! Thanks

  2. #2
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549
    Does the domain resolve? Have you checked the error_log if it does?

    Also remove ServerPath from your virtualhost unless you have the httpd.conf etc in that path.

    -Scott
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

Posting Permissions

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