Hosting multiple sites on Ec2 folder

Discussion in 'Apache' started by neeshu, May 17, 2016.

  1. #1
    I have 2 domains autogl.com which is spread on the root folder and oraclehut which is inside the oraclehut folder I wish to connect it to godaddy

    So I followed and instructional tutorial on this page
    http://brianshim.com/webtricks/host-multiple-sites-amazon-ec2/
    and made an entry in the httpd conf file

    
    <VirtualHost *:80>
    ServerAdmin neeshu@gmail.com
    DocumentRoot "/var/www/html"
    ServerName autogl.com
    ErrorLog "/var/www/html/logs/autogl.com-error_log"
    CustomLog "/var/www/html/logs/autogl.com-access_log" common
    </VirtualHost>
    
    
    <VirtualHost *:80>
    ServerAdmin neeshu@gmail.com
    DocumentRoot "/var/www/html/oraclehut"
    ServerName oraclehut.com
    ErrorLog "/var/www/html/logs/autogl.com-error_log"
    CustomLog "/var/www/html/logs/autogl.com-access_log" common
    </VirtualHost>
    
    Code (markup):
    The service restart is failing when I make these two entries. The main domain autogl.com does not open when I am making oraclehut entry.

    I would also like to add that oraclehut's nameserver are set to cloudflare
    Any help will be appreciated.
    Thanks
     
    neeshu, May 17, 2016 IP
  2. 24x7servermanagement

    24x7servermanagement Greenhorn

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #2
    Did you checked the error log file for the errors being generated while restarting the service ? Make sure you define the IP address for <Virtual host > entry and also confirm if the path for Error log and Customlog is correct.
     
    24x7servermanagement, Jun 12, 2016 IP
  3. neeshu

    neeshu Well-Known Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #3
    worked fine thanks I have removed the double quotes
     
    Last edited: Jun 18, 2016
    neeshu, Jun 18, 2016 IP