Problem with domain names

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
wally007
-


Joined: 13 Jan 2004
Posts: 17

PostPosted: Tue Mar 09, 2004 12:49 am    Post subject: Problem with domain names Reply with quote

Hi ,
I'm running newest Abyss Web Server and using php script that i found here to host two web sites. My /htdocs directory looks like this : /htdocs/forum/ and : /htdocs/gallery/ and /htdocs/index.php (file with multidomain script).

www.vladik1.com is pointing to /gallery/
www.kalifornske-forum.com is pointing to /forum/

The problem that i have is that vladik1.com (gallery) is my personal web site with my pictures and kalifornske-forum.com (forum) is public forum. With script the way it is now all kalifornia-forum.com traffic is ABLE to get into my gallery even without knowing vladik1.com domain. All they have to do is type www.kalifornske-forum.com/gallery and they're actually in /htdocs/gallery/ directotry which is suppoused to be only for vladik1.com visitors. What i'm looking for is locking users that use kalifornske-forum.com to ONLY /htdocs/forum/ direcotry and nothing else. Any help will be greatly apreciated. THanks for you time.

wally

PS> Here is index.php code
<?php

//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "www.vladik1.com") {

//forward to appropriate page
header("Location : gallery/");
exit;

}
if ($_SERVER['HTTP_HOST'] == "vladik1.com") {

header("Location : gallery/");
exit;

}
//duplicate from here for more addresses
if ($_SERVER['HTTP_HOST'] == "www.kalifornske-forum.com") {

header("Location : forum/");
exit;

}

if ($_SERVER['HTTP_HOST'] == "kalifornske-forum.com") {

header("Location : forum/");
exit;

}

//end duplicating, insert below.


//else show error page
else {

header("Location : error.html");
exit;

}

?><title>Opening Your Page ::</title>

Code:
Code:
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Mar 09, 2004 12:53 am    Post subject: Reply with quote

Yes. Sadly there is no way around it. The script you are using (as does everyone else) is simply a redirect.

Until the new version of Abyss comes out, you can't fix that problem.

Note: I believe the beta of the new version has an ETA of around 10 days; be happy!

EDIT: I thought of something. If you were to use a "referrer" script so anyone originating from "domain.com" would get redirected to a page of your choice (you could maybe make a fake "404"page).
Try www.hotscripts.com to find the referrer script.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
wally007
-


Joined: 13 Jan 2004
Posts: 17

PostPosted: Tue Mar 09, 2004 1:33 am    Post subject: Reply with quote

humm , now that's a bit sad. Thanks for taking your time though.

Hopefully new Beta will have multi-domain feature working.

Thakns again !
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Mar 09, 2004 2:02 am    Post subject: Reply with quote

Yes; the "Virtual Host" (that's what it's called) has been one of the hottest topics on this forum.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Mar 09, 2004 7:14 am    Post subject: Reply with quote

Has it really been about 20 days since we
brought that up about the new beta version :?
Back to top View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Mar 09, 2004 7:22 am    Post subject: Reply with quote

I am a victim of wishful thinking... oh well...
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
wally007
-


Joined: 13 Jan 2004
Posts: 17

PostPosted: Tue Mar 09, 2004 8:23 am    Post subject: Reply with quote

THanks, I can wait for new beta few days. I dont want to learn new web server now that i found my way around Abyss. HOpefully you werent pulling my leg with " 10 days 'till new version " sentence.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Tue Mar 09, 2004 11:15 am    Post subject: Reply with quote

I was just wondering , even im excited of virtual host support ! :D
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group