Virtual Host Alias

Discussion in 'Apache' started by ShadyShotton, Dec 3, 2012.

  1. #1
    Wondering if you can help me out here, as I don't know enough about server configs. Got a VPS with 123-reg, and trying to get this simpleSAMLphp working. It says this should be the config of the httpd.conf -


    <VirtualHost *>
    ServerName service.example.com
    DocumentRoot /var/www/service.example.com


    Alias /simplesaml /var/simplesamlphp/www
    </VirtualHost>


    I have edited the file in /etc/httpd/conf to include this:-


    <VirtualHost *>
    ServerName www.spartancloud.co.uk
    DocumentRoot /var/www/vhosts/spartancloud.co.uk


    Alias /simplesaml /var/simplesamlphp/www
    </VirtualHost>


    from what I understand I should be able to type in www.spartancloud.co.uk/simplesaml and it should work, but it doesnt and the error log says...


    [Fri Nov 30 15:48:24 2012] [error] [client 192.153.174.44] File does not exist: /var/www/vhosts/spartancloud.co.uk/httpdocs/simplesaml


    any ideas?
     
    ShadyShotton, Dec 3, 2012 IP
  2. testu

    testu Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Still need help with this? Shoot me a PM and I'll help you.
     
    testu, Dec 5, 2012 IP