how to configure my amazon Aws server for the redirect

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

how to configure my amazon Aws server for the redirect

Post 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.
Post Reply