|
Is there a way to point an externally hosted subdomain to one of my applications? I know I can do this with a custom app and the listen port, but what if I just want a standard Apache/PHP setup? Would I need a dedicated IP address for this, or would I have to build a custom app with Apache/PHP built from source to use it's own listen port? If so, how would building Apache/PHP from source affect my RAM usage vs the default PHP install script? |
|
Yes, you can do this. First, the Custom Application (listening on port) and Apache (Static/CGI/PHP) applications do not work any differently in this respect. In order to explain more clearly why these two app types don't matter, it is necessary to explain a bit about how the system works.
Therefore, in order to serve an externally-hosted subdomain from one of your applications, the only requirement is that this subdomain is pointed to your webserver via its DNS A record. Your webserver's IP address is listed in the Control Panel. Once that is done, you need only to add the domain, application, and website record in the Control Panel, and Nginx will recognize the domain when web requests come in. Then it will be able to pass the request to your application, and the website association will work as expected. Note that DNS changes can take some time to propagate. So if you receive some Site Not Configured errors immediately after making these changes; that's normal. Hope that helps! |