View previous topic :: View next topic |
Author |
Message |
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Tue Mar 09, 2004 12:49 am Post subject: Problem with domain names |
|
|
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>
|
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Mar 09, 2004 12:53 am Post subject: |
|
|
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 |
 |
 |
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Tue Mar 09, 2004 1:33 am Post subject: |
|
|
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 |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Mar 09, 2004 2:02 am Post subject: |
|
|
Yes; the "Virtual Host" (that's what it's called) has been one of the hottest topics on this forum. _________________ Bienvenidos! |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Mar 09, 2004 7:14 am Post subject: |
|
|
Has it really been about 20 days since we
brought that up about the new beta version :? |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Mar 09, 2004 7:22 am Post subject: |
|
|
I am a victim of wishful thinking... oh well... _________________ Bienvenidos! |
|
Back to top |
 |
 |
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Tue Mar 09, 2004 8:23 am Post subject: |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Mar 09, 2004 11:15 am Post subject: |
|
|
I was just wondering , even im excited of virtual host support ! :D |
|
Back to top |
|
 |
|