I can upload the site files to the ftp server. However, how do I connect the domain name with the site files?
Hosting General: Posting websites
You should be logged in to post new messages. Create an account.
- By: Jason
- Date: on 2008 Jan. 18 21:29
- Subject: Posting websites
- By: Jason
- Date: on 2008 Jan. 18 22:28
- Subject: Re: Posting websites
On Jan, 18 2008 22:29 CET, Jason wrote:
I can upload the site files to the ftp server. However, how do I connect the domain name with the site files?
Ok, I figured it out. I just have to add the domain as a virtual host, add the site's file under a folder named www.sitename.extension and then point the domain name to my server's IP address.
- By: Jason
- Date: on 2008 Jan. 18 23:10
- Subject: Re: Posting websites
On Jan, 18 2008 23:28 CET, Jason wrote:
On Jan, 18 2008 22:29 CET, Jason wrote:I can upload the site files to the ftp server. However, how do I connect the domain name with the site files?Ok, I figured it out. I just have to add the domain as a virtual host, add the site's file under a folder named www.sitename.extension and then point the domain name to my server's IP address.
Didn't quite work as expected. Here are the issues: 1. Only the domain name without "www." works. I have the A record for "@" and the A record for "www" pointing to my server's IP address. So I don't know why it won't work when I try to access the site using "www". 2. The second site is accessing the files of the first site. I can't figure out how to get the second site to access it's own files.
- By: Jason
- Date: on 2008 Jan. 18 23:49
- Subject: Re: Posting websites
I know I'm the only one here and by looking back, I see there there is VERY limited hosting support through the forums. Nevertheless, maybe someone can learn from my own trial and error. To identify the directory for your domain name (virtual host), you need to be in advanced mode. You don't need to have your site in the default "htdocs", and your site folder can be named whatever you want. I ran some tests and it works as expected. HOWEVER, I still don't know how to get it to show my domain name with the "www" in front.
- By: Ryan (Gandi)
- Date: on 2008 Jan. 19 06:47
- Subject: Re: Posting websites
On Jan, 19 2008 00:49 CET, Jason wrote:
I know I'm the only one here and by looking back, I see there there is VERY limited hosting support through the forums. Nevertheless, maybe someone can learn from my own trial and error. To identify the directory for your domain name (virtual host), you need to be in advanced mode. You don't need to have your site in the default "htdocs", and your site folder can be named whatever you want. I ran some tests and it works as expected. HOWEVER, I still don't know how to get it to show my domain name with the "www" in front.
Hello, This is due to the current default configuration of the Apache virtualhost for Gandi AI. In order for Apache to know how to handle the request for a particular hostname, there needs to be a specific statement in the virtualhost file that will point a particular hostname to a directory. Therefore, for example, is you have configured Apache to respond to the virtualhost domain.com then it will not reply to the www subdomain. What you will need to do is to use Gandi's forwarding and then create a forwarding from the www subdomain to the domain name. For more on setting up forwarding: http://wiki.gandi.net/en/domains/managemen... In expert mode you would simply add a ServerAlias in the sites-available virtualhost file for the website (documention on this may be found here: http://httpd.apache.org/docs/2.0/mod/core.... Otherwise, for more personalized support on your problem, please feel free to contact Gandi's customer support at: http://www.gandi.net/faq/form_contact_supp... You mentioned that "You don't need to have your site in the default "htdocs", and your site folder can be named whatever you want.". This should not be the case, and is possibly indicative of a bug. I would be interested in hearing more on this. Regards,
Ryan http://www.gandi.net/
- By:
Jason - Date: on 2008 Jan. 26 01:29
- Subject: Re: Posting websites
On Jan, 19 2008 06:47 CET, Ryan (Gandi) wrote:
On Jan, 19 2008 00:49 CET, Jason wrote:I know I'm the only one here and by looking back, I see there there is VERY limited hosting support through the forums. Nevertheless, maybe someone can learn from my own trial and error. To identify the directory for your domain name (virtual host), you need to be in advanced mode. You don't need to have your site in the default "htdocs", and your site folder can be named whatever you want. I ran some tests and it works as expected. HOWEVER, I still don't know how to get it to show my domain name with the "www" in front.Hello, This is due to the current default configuration of the Apache virtualhost for Gandi AI. In order for Apache to know how to handle the request for a particular hostname, there needs to be a specific statement in the virtualhost file that will point a particular hostname to a directory. Therefore, for example, is you have configured Apache to respond to the virtualhost domain.com then it will not reply to the www subdomain. What you will need to do is to use Gandi's forwarding and then create a forwarding from the www subdomain to the domain name. For more on setting up forwarding: http://wiki.gandi.net/en/domains/managemen... In expert mode you would simply add a ServerAlias in the sites-available virtualhost file for the website (documention on this may be found here: http://httpd.apache.org/docs/2.0/mod/core.... Otherwise, for more personalized support on your problem, please feel free to contact Gandi's customer support at: http://www.gandi.net/faq/form_contact_supp... You mentioned that "You don't need to have your site in the default "htdocs", and your site folder can be named whatever you want.". This should not be the case, and is possibly indicative of a bug. I would be interested in hearing more on this. Regards,
In the advanced mode, you can set the path of your website files. for instance, I wanted the domain name to point to www/anyfolder, I would just set the path name to that site.