Allow multiple domains to access one directory

  • Posted:
  • Proposals: 3
  • Remote
  • #622908
  • Awarded
Dan B.
Mohit P.
Georges S. have already sent a proposal.
  • 1


Experience Level: Intermediate
General information for the website: Details below
Description of requirements/features: We have a PHP application which currently resides on an Apache server - it resides in /home/example/public_html/application and is publically accessed via

We now need to add multiple domains which will all access the same content - for example and and so on. All the domains will be on the same server.

When someone enters it will display content for served from /home/acme/public_html - when they enter it will display content for served from /home/test/public_html.

However, in all scenarios the content of /home/example/public_html/application should be displayed when /application is accessed.

For example, would be served from /home/acme/public_html/signup.php but would be served from /home/example/public_html/application/index.php

Likewise, would be served from /home/test/public_html/login.php but would be served from /home/example/public_html/application/help.php

Additionally, the impact of email and SPF and so on needs to be considered - all email coming from /application should use the email domain of the referrer. If someone gets an email from then it needs to come from - likewise any emails from needs to come from

Additionally, in the future, we will scale out our web layer by adding redundant web servers so nothing which is done now should prohibit that in the future - at the moment, as we add more domains we will simply add more CPU, RAM etc to the standalone server.

I need this setup in such a way the steps are clearly documented for adding a new domain - I am happy modifying httpd.conf, htaccess files and so on but the process needs to be scalable, repeatable and robust.
Extra notes:

New Proposal

Create an account now and send a proposal now to get this job.

Sign up

Clarification Board Ask a Question

    There are no clarification messages.