I need config a subdomain with virtual host on apache my virtual host (apache2/config/httpd.conf), is the unique virtual host on httpd.conf
My domains on control panel: - domain.com - www.domain.com - subdomain.domain.com when i enter subdomain.domain.com on browser my app redirect to www.domain.com, because my .htaccess redirect to my app, but I disabled my .htaccess and I enter to subdomain.domain.com, show the same page that www.domain.com or domain.com. I need to enter on subdomain.domain.com and show me a "Hello World" that contain my index page and not show the content www.domain.com page *my app is done on django asked 11 Mar '14, 16:59 Madrid16 |
I need to create an architecture for a development environment to configure each application on a virtual host, for example dominio1.com my main domain and I need to work with multiple projects or multiple subdomains. for example, I have subdomain1, subdomain2 and subdomain3, and when I enter the browser (subdomain1.domain1.com) and show me the appropriate application I currently have only a subdomain (subdomain1) and Ia when enter subdominio1.dominio1.com shows the page that corresponds to dominio1.com and not show me the contain of my subdomain, what I need is to configure each application with its corresponding subdomain. Currently subdomain1 and domain1.com are under the same IP. I like good practices and do not want to do the following: http:dominio1.com/subdominio1
answered 12 Mar '14, 16:48 Madrid16 |
The correct way to configure virtual hosts in your Django app's Apache configuration is available here: Apache Virtual Hosts for Django answered 13 Mar '14, 00:43 seanf |
It's not possible to set VirtualHost directives at that level in WebFaction apps but could you please try to explain again what exactly you are trying to achieve? I'm not sure exactly what you are trying to do but perhaps we could suggest an alternative.
I need to create an architecture for a development environment to configure each application on a virtual host, for example dominio1.com my main domain and I need to work with multiple projects or multiple subdomains.
for example, I have subdomain1, subdomain2 and subdomain3, and when I enter the browser (subdomain1.domain1.com) and show me the appropriate application
I currently have only a subdomain (subdomain1) and Ia when enter subdominio1.dominio1.com shows the page that corresponds to dominio1.com and not show me the contain of my subdomain, what I need is to configure each application with its corresponding subdomain.
Currently subdomain1 and domain1.com are under the same IP.
I like good practices and do not want to do the following: http:dominio1.com/subdominio1
all my app are made in django.