Can i do an alias inside a directory?

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


Joined: 10 Dec 2003
Posts: 3

PostPosted: Fri Jan 21, 2005 4:23 pm    Post subject: Can i do an alias inside a directory? Reply with quote

I need to have an alias like this:
/mydir/bin
Mydir is a folder at the root of the virtualpath (www.mydomain.com/mydir)
and i want use www.maydomain.com/mydir/bin where bin is in other place in the computer (and where i use perl scripts)

I have try to configure alias like "/mydir/bin" but this dont work on my computer !

Have you a solution?
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Fri Jan 21, 2005 11:32 pm    Post subject: Re: Can i do an alias inside a directory? Reply with quote

WebCarle wrote:

I have try to configure alias like "/mydir/bin" but this dont work on my computer !

What "doesn't work" mean here? What was the result? What do you get when you browse http://yoursite/mydir/bin?
How you've configured the alias (what were the virtual path and real path)?
Back to top View user's profile Send private message
WebCarle
-


Joined: 10 Dec 2003
Posts: 3

PostPosted: Sun Jan 23, 2005 6:28 pm    Post subject: Reply with quote

I've just solved my problem:

In config file, if you have somes alias like this:
/dir1/dir2
/dir1/dir2/dir3
(and in reality dir2 is not in dir 1 adns dir3 is not in dir2 but are in anothers folders)

The second one dont be a valid (you cant acces /dir1/dir2/dir3)

But if you reverse the order it work fine :
/dir1/dir2/dir3 ( you can acces /dir1/dir2/dir3 )
/dir1/dir2 (you can acces /dir1/dir2 )

So the order of alias is very important in the config file !
and you must declare the longuest alias before the shortnest

(sorry for my bad english but i hope that you have anderstood)
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Sun Jan 23, 2005 11:43 pm    Post subject: Reply with quote

What is the version of Abyss Web Server that you're using (please give us the exact version as displayed in the About dialog.)
Back to top View user's profile Send private message
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