iwato Posted May 5, 2020 Share Posted May 5, 2020 BACKGROUND: My goal is to emulate on my local server what occurs on my remote server for the purpose of offline development. On my remote server I have two add-on domains called grammarcaptive.com and nudge.online. I also have one subdomain called tutor.grammarcaptive.com. The content folder for tutor.grammarcaptive is located in the same folder as the grammarcaptive.com folder. All of these domain and subdomain name servers communicate with the same MySQL databases. I have not yet set up MySQL, but PHP is working well in a simple localhost environment that points to a root document folder at /Library/Webserver/Documents. However, all of my content on my local server resides in the same /Users/username/Sites folder. It is to this folder that I would like Apache to point and, of course, PHP to point. I am working in a MacOS 10.15.4 operating environment using Apache 2.4.41. I envision a file structure as follows: /Users/username/Sites/grammarcaptive.com /Users/username/Sites/grammarcaptive.com/tutor /User/username/Sites/nudge.online Once again, it is crucial that I have three virtual domain servers of which each can send HTTP Requests to the other. Once again, the three servers should be called: grammarcaptive.com tutor.grammarcaptive.com nudge.online QUESTION ONE: Is this a reasonable goal? QUESTION TWO: If this goal is reasonable, how would I go about setting it up? QUESTION THREE: If this goal is unreasonable, what work around would you recommend? Please advise. Roddy Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now