View previous topic :: View next topic |
Author |
Message |
WebCarle -
Joined: 10 Dec 2003 Posts: 3
|
Posted: Fri Jan 21, 2005 4:23 pm Post subject: Can i do an alias inside a directory? |
|
|
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 |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Fri Jan 21, 2005 11:32 pm Post subject: Re: Can i do an alias inside a directory? |
|
|
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 |
|
 |
WebCarle -
Joined: 10 Dec 2003 Posts: 3
|
Posted: Sun Jan 23, 2005 6:28 pm Post subject: |
|
|
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 |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Sun Jan 23, 2005 11:43 pm Post subject: |
|
|
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 |
|
 |
|