PDA

View Full Version : subdomains and folders


crmaykish
24th November 2006, 15:37
I am running a server with ISPConfig. I have two ways of accessing it. I can use my no-ip account (crmaykish.no-ip.org) or I have set up DNS on my domain name so that home.techbycolin.com also points to my server.

I have read in other posts, that when setting up a site, the hostname is crmaykish and the domain is no-ip.org. Now, why does this create a folder called crmaykish.no-ip.org in my root directory? How can I set up either a http://something.crmaykish.no-ip.org or a http://crmaykish.no-ip.org/something/ as the way to access the website.

Thanks,
Colin

till
24th November 2006, 18:41
Create a folder /var/www/crmaykish.no-ip.org/web/something/, every html file you put in thsi folder can be reached with the URL http://crmaykish.no-ip.org/something/....

crmaykish
24th November 2006, 19:16
Okay,

I created new a site. Hostname is crmaykish and domain is no-ip.org. I left the DNS stuff unchecked. The ip address of my machine is 192.168.1.77, but if I choose that, I get the shared IP page. So i chose 192.168.1.105.

I then SSH in and create a a dir /var/www/crmaykish.no-ip.org/web/colin.

I made an html file in there, but i cannot access it. from http://crmaykish.no-ip.org/colin/. I get a 404.

I can access it from http://crmaykish.no-ip.org/crmaykish.no-ip.org/web/colin/.

till
24th November 2006, 19:37
Make sure that crmaykish.no-ip.org is a DNSA-Record pointing to your external IP address and not some type of HTML rdirect. Also you must chsoe the IP for the website, where you forwarded port 80 from your router to.

crmaykish
24th November 2006, 19:49
Excellent. It's working now. I appreciate it.

Thanks! :)