Amazon Web Services root directory redirect

Welcome to our community

Be apart of something great, join today!

xenialre05

Newbie
Messages
4
Reaction score
0
Points
1
Hello users, 

I have a question about a subject in amazon from which I could not get anything in the documentation. I installed a lamp server, with its database in an Amazon instance that I associated with an Elastic IP. Then through Amazon Route 53 I was able to assign a domain to that instance. I used Route 53 because I have the domain on another server. My question is if I can assign that domain to a specific directory. For example, my current root directory in the instance is / var / www / html, but I have a directory that is var / www / html / webpage. i want that domain to point to the second directory. It's possible? 

Thank you
 
  • Advertisement
  • geniushost 

    Premium Member
    Messages
    38
    Reaction score
    2
    Points
    17
    It depends on the web server software, if it is apache you should at least be able to edit your .htaccess to set the root directory, in the case that nginx should give you access to a nginx.conf for your account
     
  • Advertisement
  • xenialre05

    Newbie
    Messages
    4
    Reaction score
    0
    Points
    1
    Hello @"geniushost"

    your answer made me remember something, in fact I am using apache, my option was to create a vhost file that did not exist and create the directives, it worked perfectly.

    Thank you.
     

    Advertisement

    Top