Amazon Web Services root directory redirect

Share your past and present experiences with Dedicated Servers. Discuss topics such as server solutions, running your servers, your preferences and your thoughts on Windows and Linux servers.
Post Reply
xenialre05
Newbie
Posts: 2
Joined: Wed Jul 04, 2018 2:42 pm

Wed Jul 04, 2018 2:47 pm

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


User avatar
geniushost
Junior Member
Posts: 20
Joined: Mon Nov 13, 2017 1:34 pm

Wed Jul 04, 2018 5:52 pm

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
xenialre05
Newbie
Posts: 2
Joined: Wed Jul 04, 2018 2:42 pm

Wed Jul 04, 2018 6:37 pm

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.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests