View Full Version : Create a Subdomain
PortMan
21st August 2006, 22:59
I have ISPConfig installed and working. Now, I want to create a subdomain but an not clear on all the steps required to do it.
I have my domain registered at GoDaddy.
Currently, I have www.domain.com configured at GoDaddy using "Total DNS Control" manager. How do I create http://dev.domain.com on my server and point GoDaddy to it?
I see the "co-domains" on the ISPConfig tab, and can create the "dev.domain.com" but then what? It doesn't create a folder for me to upload to. Can someone explain to me the steps?
Thanks.
tommytomato
22nd August 2006, 08:38
I have ISPConfig installed and working. Now, I want to create a subdomain but an not clear on all the steps required to do it.
I have my domain registered at GoDaddy.
Currently, I have www.domain.com configured at GoDaddy using "Total DNS Control" manager. How do I create http://dev.domain.com on my server and point GoDaddy to it?
I see the "co-domains" on the ISPConfig tab, and can create the "dev.domain.com" but then what? It doesn't create a folder for me to upload to. Can someone explain to me the steps?
Thanks.
So did you find out how to create a subdomain, I'm in the same boat as you, queit new to ISPconf.
This ISPcong is alot different to what I was using.
TT
till
22nd August 2006, 08:45
Subdomain (in ISPConfig named co-domain) points always to the same folder then the website it belongs to. To point it to another location you can enter the directory where it shall point to in the options of the co-domain.
If you want your subdomain to have a own root folder, just create a new website for the subdomain.
tommytomato
22nd August 2006, 15:39
Subdomain (in ISPConfig named co-domain) points always to the same folder then the website it belongs to. To point it to another location you can enter the directory where it shall point to in the options of the co-domain.
If you want your subdomain to have a own root folder, just create a new website for the subdomain.
Thanks, I've been at it for a while now and cant make heads or tails out of it.
This ISPconfig is way out of my league for now, I'll stick to the easyier stuff, thanks for the support.
TT
torusturtle
23rd August 2006, 14:08
Currently, I have www.domain.com configured at GoDaddy using "Total DNS Control" manager. How do I create http://dev.domain.com on my server and point GoDaddy to it?
I see the "co-domains" on the ISPConfig tab, and can create the "dev.domain.com" but then what? It doesn't create a folder for me to upload to. Can someone explain to me the steps?
Thanks.
In ISPConfig add a Co-Domain
with Hostname "dev" and Domain "domain.com"
To point it to another directory switch to forward and type in "dev".
You should then create a directory "dev" within the "web" directory on your server.
To point to it the DNS should contain a CNAME of "dev.domain.com" and be directed to "domain.com"
poba
13th December 2006, 00:47
I see the "co-domains" on the ISPConfig tab, and can create the "dev.domain.com" but then what? It doesn't create a folder for me to upload to. Can someone explain to me the steps?
I have the same problem.
I created co-domain, also created folder with same name, but still can't get the right result when I type the address in web browser. Why?
Tilen
<VirtualHost 192.168.1.100:80>
ServerName www.puran.si:80
ServerAdmin webmaster@puran.si
DocumentRoot /srv/www/web12/web
ServerAlias forum.puran.si puran.si
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /srv/www/web12/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web12/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/srv/www/web12/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web12/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web12/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.puran\.si [NC]
RewriteRule ^/(.*)$ http://www.puran.si/forum/$1 [R]
</VirtualHost>
#
#
#
till
13th December 2006, 11:40
Co-domains never create folders, they where a alias for the main domain. If you want to have a separate filder, create a new website instead of a co-domain.
poba
13th December 2006, 12:23
Co-domains never create folders, they where a alias for the main domain. If you want to have a separate filder, create a new website instead of a co-domain.
Hi,
I have domain www.puran.si. I also have folder forum in it www.puran.si/forum/. I want to create subdomain forum.puran.si so i can type this address insted of www.puran.si/forum.
Tilen
poba
13th December 2006, 14:50
Maybe this is the problem. My friends can't see www.puran.si. I can (from my computer). ?!?!??!
Thanks, Tilen
falko
13th December 2006, 15:42
The A record for www.puran.si is pointing to a local IP address:
dig www.puran.si
; <<>> DiG 9.2.1 <<>> www.puran.si
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24727
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.puran.si. IN A
;; ANSWER SECTION:
www.puran.si. 86400 IN A 192.168.1.100
;; Query time: 142 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Wed Dec 13 14:41:26 2006
;; MSG SIZE rcvd: 46This means that nobody from outside your local network can see your web site. You must use the server's public IP address in the DNS record.
poba
13th December 2006, 16:12
still the same problem :(
$TTL 86400
@ IN SOA suse.mejhn.si. ttilen.gmail.com. (
2006121102 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS suse.mejhn.si. ; Inet Address of name server 1
NS bbki.si-gov.org. ; Inet Address of name server 2
;
www MX 10 suse.mejhn.si.
puran.si. A 86.61.71.163
www A 86.61.71.163
;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
Bicet
13th December 2006, 17:21
In ISPConfig add a Co-Domain
with Hostname "dev" and Domain "domain.com"
To point it to another directory switch to forward and type in "dev".
You should then create a directory "dev" within the "web" directory on your server.
To point to it the DNS should contain a CNAME of "dev.domain.com" and be directed to "domain.com"
Sorry but I cannot understand how the CNAME should be...
falko
14th December 2006, 19:59
still the same problem :(
$TTL 86400
@ IN SOA suse.mejhn.si. ttilen.gmail.com. (
2006121102 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS suse.mejhn.si. ; Inet Address of name server 1
NS bbki.si-gov.org. ; Inet Address of name server 2
;
www MX 10 suse.mejhn.si.
puran.si. A 86.61.71.163
www A 86.61.71.163
;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
It's looking ok now:
mh1:~# dig www.puran.si
; <<>> DiG 9.2.1 <<>> www.puran.si
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41402
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.puran.si. IN A
;; ANSWER SECTION:
www.puran.si. 86400 IN A 86.61.71.163
;; Query time: 278 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Thu Dec 14 18:58:26 2006
;; MSG SIZE rcvd: 46
It can take up to 72 hours until DNS changes propagate so you must be patient.
falko
14th December 2006, 20:01
Sorry but I cannot understand how the CNAME should be...
What exactly is the problem?
poba
14th December 2006, 20:13
Thank you very much Falko. Can you please help me with another problem....subdomain.
Now, that my domain www.puran.si works, I would like to have subdomain forum (forum.puran.si). I installed PHPBB forum (www.puran.si/forum/). Now, I want subdomain that redirects you in this folder. How can I do that?
Tilen
falko
15th December 2006, 14:34
Have a look here: http://ispconfig.org/downloads/manual_en/manual_kunde_en_src.htm#4_2_3 chapter 2.3.2.
poba
15th December 2006, 17:40
Thanks but I already tryed this. It's not working.
Tilen
falko
16th December 2006, 13:17
Then have a look here: http://www.stevenhargrove.com/redirect-web-pages/
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.