Koozali.org: home of the SME Server

Stopping Primary Webpage from being served...

Milano

Stopping Primary Webpage from being served...
« on: December 12, 2002, 03:51:02 AM »
Was wondering if someone can let me know if this is possible.  I would like to be able to have the primary site from being presented to the internet.  I do need it running though so any ibays that are not associated to a virtual domain get served.
IE:  www.primarydomain.com   shows "page cannot be displayed"
yet www.primarydomain.com/ibay1 shows the content of the that ibay.
If I remove the default index.htm from the primary site I get the directory structure of the wwwroot.  I don't want this either.  
Reason for doing, everytime I call my cable company for support they go to http://myipaddress and it used to show my primary domain (which I've sinced moved to an ibay) and then they start complaining about the server and I just don't want that hassle from them.
Any help would be greatly appreciated.

Mil.

Boris

Re: Stopping Primary Webpage from being served...
« Reply #1 on: December 12, 2002, 06:28:04 AM »
I would try changing port from standard (80) to nonstandard (81?) and then use external DNS service (like zoneedit.com) to redirect http://www.yourrealdomain.com to http://www.yourdynamicIP.com:82/ibay

Milano

Re: Stopping Primary Webpage from being served...
« Reply #2 on: December 12, 2002, 07:04:44 AM »
Unfortunatly there are 10 domains that are already being handled by another dns provider, changing them at this time is not an option.  What about .htaccess? Even if it returned a "You are not authorized to view this page" would be fine, as long as it wouldn't effect the ibays.

Mil.

Ray Mitchell

Re: Stopping Primary Webpage from being served...
« Reply #3 on: December 12, 2002, 09:56:46 AM »
Milano
I tried renaming my primary/html folder to primary/htmlok, and when I access the main site at http://www.mydomain.com I get
Forbidden
You don't have permission to access / on this server.

I can still access http://www.mydomain.com/ibayname OK though.

I'm using v5.1.2 and do not have any virtual domains setup, so I don't know if this wil work for you.
Regards
Ray Mitchell

Johan

Re: Stopping Primary Webpage from being served...
« Reply #4 on: December 12, 2002, 11:10:51 AM »
Hello guys,

I have made in the past something like that whit a lettele php script

Just place it in de ibay/html directorie en fill in to what page the must go

You make a file whit the name index.php

and place the fllow information in it

  header('location: http://www.samaritanspurse.org/intl.asp?country=Netherlands');
?>

Save and close it

You can fill in every right http:// path you want are make in your primary/html directorie a page whith every link the user may make (to the deferent IBAYS

Goodluck

Johan

Milano

Re: Stopping Primary Webpage from being served...
« Reply #5 on: December 12, 2002, 01:05:56 PM »
Q!uick, simple & painless.  Thanks Ray.  Renamed it and it doesn't seem to have any adverse effects on the rest of the sites, just the primary, which is exactly what I needed.  Thanks Again.

Mil.