WebFaction
Community site: login faq

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

< VirtualHost subdomain.domain.com:8081 >
    ServerAdmin email@domain.com
    DocumentRoot /home/< user >/webapps/< app >/subdomain directory/
    ServerAlias *.domain.cl
    ServerName subdomain.domain.com
        < Directory "/home/< user >/webapps/< app >/subdomain directory/" >
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
        < /Directory >
< /VirtualHost >

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
1112
accept rate: 0%

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.

(12 Mar '14, 07:03) waynek

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.

(12 Mar '14, 16:52) 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

  • all my app are made in django.
permanent link

answered 12 Mar '14, 16:48

Madrid16
1112
accept rate: 0%

The correct way to configure virtual hosts in your Django app's Apache configuration is available here: Apache Virtual Hosts for Django

permanent link

answered 13 Mar '14, 00:43

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×76
×25
×8

question asked: 11 Mar '14, 16:59

question was seen: 3,983 times

last updated: 13 Mar '14, 00:43

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM