cancel
Showing results for 
Search instead for 
Did you mean: 

Domain Hosting: point to CGI server?

N/A

Domain Hosting: point to CGI server?

When I configure my domains, it only seems possible to point them to a folder within my area on the homepages server. Is there any way to point a domain to my area on crofters?
12 REPLIES
Plusnet Staff
Plusnet Staff
Posts: 12,169
Thanks: 18
Fixes: 1
Registered: 04-04-2007

Domain Hosting: point to CGI server?

Hi,

You can point your domain at the CGI server, although you can't choose a specific folder like on Homepages.
If you raise a ticket, there's a specific path to go through, which will give you instructions one what to do your side, and then a config change on our side.
N/A

Domain Hosting: point to CGI server?

for multiple domains on the cgi server I found this post helpful

http://portal.f9.net.uk/central/forums/viewtopic.php?t=3852

Jarv
N/A

Domain Hosting: point to CGI server?

If you do not intend, ever, to run Perl scripts (or anything else which lives in cgi-bin) then I have a nicer way which is transparent to the user, unlike Dave's.
N/A

Domain Hosting: point to CGI server?

That is teasing. Evil


What is it Huh :lol:

Cheers,
Jarv
N/A

Domain Hosting: point to CGI server?

Quote
If you do not intend, ever, to run Perl scripts (or anything else which lives in cgi-bin) then I have a nicer way which is transparent to the user, unlike Dave's.
Sadly this won't help, as 99.9% of the stuff I'm going to be running through this domain will be Perl scripts/
Marteknet
Grafter
Posts: 577
Registered: 13-10-2007

this may help

If you set up your domains www.first.co.uk or www.second.co.uk and so on, to point at dedicated files and directories in homepages and the file for each domain contains a redirect to http://cgi.first.co.uk or http://cgi.first.co.uk whatever the corresponding cgi domain should be.

Then use the mydomains in the Force9 portal to setup your cgi domains to directories on the crofters server. see here for info on this

http://portal.f9.net.uk/central/forums/viewtopic.php?t=3691

Using this method keeps the correct url in the browser address bar. and you can have as many cgi.domains housed in your cgi server space as you need.

Hope this helps.

Regards Peter
N/A

Domain Hosting: point to CGI server?

You can't have them in different folders though, by doing that. The folders stuff only applies to homepages.
N/A

Domain Hosting: point to CGI server?

3 weeks later, from a post on the PlusNet portal (I'd imagine the same would work over here, but I don't have a CGI login for Force9)

RewriteEngine On

RewriteCond %{HTTP_HOST} cgi\.csogilvie\.plus\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/cgi/(.*) [NC]
RewriteRule (.*)$ /cgi/$1


My site for "cgi.csogilvie.plus.com" lives, imaginatively enough, in a subfolder called cgi - what this says is that if the Host is cgi.csogilvie.plus.com AND the request is not for a file in the /cgi/ folder, then serve the file as if it was in the CGI folder.

So http://cgi.csogilvie.plus.com/index.php serves the file at /files/homex/csogilvie/cgi/index.php and http://www.domain.ext/index.php serves it from /files/homex/csogilvie/index.php

If, for example, I wanted to serve www.domain.ext from "domain" then I would do:

RewriteEngine On

RewriteCond %{HTTP_HOST} www\.domain\.ext$ [NC]
RewriteCond %{REQUEST_URI} !^/domain/(.*) [NC]
RewriteRule (.*)$ /domain/$1


I can't take credit for all of this, some of the inspiration came from other .htaccess stuff that has been posted.

I'll try and formulate it into a proper tutorial at some point.
N/A

Domain Hosting: point to CGI server?

credit or no credit, you are a god among men.

info MUCH appreciated Cheesy

Jarv
N/A

Domain Hosting: point to CGI server?

Could I also add that if you want 'common' areas between your domains that are in your root directory this can also be done:

my current .htaccess file:
RewriteEngine On 

RewriteCond %{HTTP_HOST} www\.mjarv\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/mjarv(/(.*)|$) [NC]
RewriteCond %{REQUEST_URI} !^/gallery(/(.*)|$) [NC]
RewriteCond %{REQUEST_URI} !^/computingproject(/(.*)|$) [NC]
RewriteRule (.*)$ /mjarv/$1

RewriteCond %{HTTP_HOST} www\.jarvpcs\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/jarvpcs(/(.*)|$) [NC]
RewriteRule (.*)$ /jarvpcs/$1

RewriteCond %{HTTP_HOST} www\.djarv\.co\.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/djarv(/(.*)|$) [NC]
RewriteCond %{REQUEST_URI} !^/gallery(/(.*)|$) [NC]
RewriteRule (.*)$ /djarv/$1


note the difference at the end of the folder, this allows the address to work if the slash at the end of the URL is omitted.

i.e.
www.mjarv.co.uk/computingproject
and
www.mjarv.co.uk/computingproject/
will work (even though it adds a slash when you hit the site, it wouldnt work without the changes).

I know you could condense that code more, but in industry you write code to be maintainable as long as the detrement to efficiency is minimal, right?

once again, standing on the sholders of giants. In my case, csogilvie's.

Jarv
N/A

Domain Hosting: point to CGI server?

Hi

Well if i cant get mine to work i will be taking my 2nd domain else were....i thought yesterday i would just add a forum to my site on my day off.....guess it was a wasted day.

Regards

Stottie

P.S My 2nd domain will be renewed by 1-2-1. Will i have to let my 1st domain lapse and then take it out with 1-2-1 and tranfer it over to here as my 2nd domain is. (i.e 1-2-1 will renew it next time). Last time it cost me £58 with Force9.
N/A

Domain Hosting: point to CGI server?

Remember to get DNS only hosting!! No need to change the ISPtag or you will have to pay renewal fees to F9...