Page 1 of 1

how to configure my amazon Aws server for the redirect

Posted: Thu Jul 16, 2015 12:12 am
by gautamz07
I need to configure my Amazon apache AWS , now i have a small problem, in my apache2.config file , i have the following settings:

Code: Select all

        <VirtualHost *:80>
        DocumentRoot /var/www/html/school
        ServerName lala.com
        </VirtualHost>
now when i navigate to

Code: Select all

    www.lala.com
I am rediected to the correct page , but when i type in

Code: Select all

    lala.com
i am sent to the 404 error page , so my question is what settings do i need to change in my apache config file for me to reach the correct URL even when i type in:

Code: Select all

    lala.com
i should be redirected to the correct url.


Thank you.

Gautam.