Good Day, I searched through the forum a bit for this one but didn't find my answer, so I'll ask it. Presently running version 3.0.5.4p3 I'm trying to create 2 subdomains and I can't get them to work with Rewrite? trust.mydomain.com (web/trust) and developers.mydomain.com (web/developers) 1) If I call them www.mydomain.com/trust and www.mydomain.com/developers they work fine 2) DNS are good, I'm on a failover site and even changed /etc/hosts to local IP to be sure Usually a subdomain has its DocumentRoot but ISPConfig works with http and path. I've tried different combinations with no success? I need to enter http://trust.mydomain.com and see http://trust.mydomain.com but end up in http://www.mydomain.com/trust I have options like No Redirection, No Flag, R, L, R,L, R=301,L Either there is no page or I end un with http://trust.mydomain.com and the http://www.mydomain.com page content (not http://www.mydomain.com/trust content) Is there an other way, any suggestions? Thank you, JP
If a subdomain shall have its own directory, then you should either create them as separate website (recomended for security reasons) or you can add them as vhost subdomain if they shall be in the folder of another website without security separation.
I'm not the developer of this site and I'm not sure we can separate in different environments. Information is probably taken from different folders from different domains... This is a site that works well on a cPanel that I sync for failover reasons (with DynECT). In cPanel I can redirect a subdomain to a different folder (public_html/trust for example). How do I go about doing a virtual host subdomain? a- Directly in the Options / Apache Directives of www.mydomain.com b- or in /etc/httpd/conf.d? <VirtualHost *:80> ServerName trust.mysite.com DocumentRoot /var/www/clients/client1/web1/web/trust </VirtualHost> <VirtualHost *:443> ServerName trust.mysite.com DocumentRoot /var/www/clients/client1/web1/web/trust ...CERTIFICATE INFO and paths (key, cert, bundle) </VirtualHost> <VirtualHost *:80> ServerName developers.mysite.com DocumentRoot /var/www/clients/client1/web1/web/developers </VirtualHost> <VirtualHost *:443> ServerName developers.mysite.com DocumentRoot /var/www/clients/client1/web1/web/developers ...CERTIFICATE INFO and paths </VirtualHost> Would I need anything more than that? Thanks, JP
FYI - I have a NAS EV certificate for the domain and 3 subdomains. (mysite.com, www., trust. and developers.)
And you can do the same in ispconfig. This function is named a vhost subdomain in ispconfig. If you dont see it in the left menu, then you havent activated that feature yet. the activation is done under system > interface config.
I'm almost there! 1) I activated vhost in interface config For each, 2) created my vhosts 3) included my path and SSL info I end up with the default ISPConfig welcome page (http ans https) and I don't see a index.html in my /trust or /developers folders ? Domain web folder : var/www/clients/client1/web1/web/developers (seems normal that it removes / in front of /var ?)
The path is a relative path of the base website, so the website path that you created now is: /var/www/clients/client1/web1/var/www/clients/client1/web1/web/developers I guess what you wanted is the path: web/developers