Hello there!
Is it possible, with the DA Custom HTTPD Configuration, to define separate document roots for different ports? The current situation is:
- I'm trying to set up dev.mydomain.com (added via domain administration as domain, not subdomain - if that makes any difference)
- I've got "Force SSL with https redirect" ON
- What I am trying to achieve is that
1. when accessing dev.mydomain.com, contents from /home/myuser/dir01 is loaded (SSL)
2. when accessing dev.mydomain.com:8083, contents from /home/myuser/dir02 is loaded (SSL)
I am easily able to set up the first part with |?DOCROOT=/home/myuser/dir01| in the Custom HTTPD Configuration, but have no clue how to do the second part (with the port specified). Tried to search the web for some answers but so far haven't found anything that works. Is there some token that I could use in the Custom HTTPD Configuration to check port? Or can this even work as the SSL uses port 443 anyways (as far as I know)?
I'm really unexperienced with this kind of configurations, any help will be greatly appreciated!
P.S. If it's not possible to get this working with separate port, would it be possible to do it with subfolder / url path? As in, dev.mydomain.com/mypath would load contents from /home/myuser/dir02 (symlinks propably work here but I would rather set this up admin level)? I believe something similar could be achieved with subdomains and the SUB token, but subdomains are not something I can use in this case. I also wouldn't want to modify the actual httpd configs in system if it is in any way possible to achieve this via Custom HTTPD Configuration.
Is it possible, with the DA Custom HTTPD Configuration, to define separate document roots for different ports? The current situation is:
- I'm trying to set up dev.mydomain.com (added via domain administration as domain, not subdomain - if that makes any difference)
- I've got "Force SSL with https redirect" ON
- What I am trying to achieve is that
1. when accessing dev.mydomain.com, contents from /home/myuser/dir01 is loaded (SSL)
2. when accessing dev.mydomain.com:8083, contents from /home/myuser/dir02 is loaded (SSL)
I am easily able to set up the first part with |?DOCROOT=/home/myuser/dir01| in the Custom HTTPD Configuration, but have no clue how to do the second part (with the port specified). Tried to search the web for some answers but so far haven't found anything that works. Is there some token that I could use in the Custom HTTPD Configuration to check port? Or can this even work as the SSL uses port 443 anyways (as far as I know)?
I'm really unexperienced with this kind of configurations, any help will be greatly appreciated!
P.S. If it's not possible to get this working with separate port, would it be possible to do it with subfolder / url path? As in, dev.mydomain.com/mypath would load contents from /home/myuser/dir02 (symlinks propably work here but I would rather set this up admin level)? I believe something similar could be achieved with subdomains and the SUB token, but subdomains are not something I can use in this case. I also wouldn't want to modify the actual httpd configs in system if it is in any way possible to achieve this via Custom HTTPD Configuration.