Relatively Physical

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


Joined: 05 Nov 2003
Posts: 385
Location: UK

PostPosted: Fri Aug 20, 2004 3:52 pm    Post subject: Relatively Physical Reply with quote

I put the following information into the server...

Server Root: \servers\
Documents Path: htdocs
Port: 80

went to aliases and added an alias

Virtual Path: /admin
Real Path: \servers\admin

it didnt like servers\admin kept saying Bad Path so I put \servers\admin

everything fine so far, I added a login ro the /admin alias and restarted the server which did not complain one bit.

I tried the URL http://localhost/admin and was prompted to log in and did so without any errors but got warned

Quote:
Error 404
Not Found



--------------------------------------------------------------------------------
Abyss Web Server X1
© Aprelium Technologies - 2001-2002

after I logged in.

The server serves up the web pages no issue but IM confused as to why the server wont serve the alias /admin, do I have to put the path within the servers htdocs scope or cant the server resolve paths with no drive identifer
(making them relative to the drive root)?

Reason I ask is I need to be able to run a server on a removable drive and having PHYSICAL paths that have FIXED drive letters in the settings is restricting the drive from being able to be run from another machine if the drive letter is assigned by the system does not match those in the server, if the server is run from a drive and all paths are relative to that drive unless indicated by a drive letter, this would make the server more user frendly.

I would be intrested if you can tell me why the server isnt serving up /admin, I would have thought that the server could have resolved the reference seeing as the server will run with the path set as \servers\ where servers is H:\servers, a removable drive. On my girlfriends machine the same drive gets assigned j:\ so it makes running the server a pain in the ass because your using PHYSICAL paths.
Back to top View user's profile Send private message
TRUSTAbyss
-


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

PostPosted: Fri Aug 20, 2004 4:07 pm    Post subject: Reply with quote

Taken From http://www.aprelium.com/forum/viewtopic.php?t=5279

Quote:

I see where you went wrong with , don't setup an aliases like that , you
only setup Aliases like that if its in your Abyss Web Server folder , you
have to use the real actual path to setup an aliases for ASP :)

Example:

Virtual Path: /ahtml
Real Path: C:\Archivos de programa\ActiveHTML\ahtml.exe


Lets say ActiveHTML is installed to the Abyss Web Server
program folder , then you could use a path like that.

Example:

Virtual Path: /ahtml
Real Path: ActiveHTML/ahtml


I just explained about this like yesturday dealing with how you would
setup an Aliases , please read the quote above this reply. Thank You!

For the drive letters always switching , its best just to go with
the last example and put your docs in the main Abyss Folder.
Back to top View user's profile Send private message Visit poster's website
senshi
-


Joined: 05 Nov 2003
Posts: 385
Location: UK

PostPosted: Sat Aug 21, 2004 2:41 am    Post subject: Reply with quote

Well the issue is that the real path is within the \servers\ folder, Abyss lives in this folder and not he abyss web server folder, so \servers\ is my root folder for the install and htdocs within that folder becomes my web root so putting the /admin folder anywhere else is only going to put the folder in to the servers scope.

if I use servers\admin the server does not like the entry and it says bad path but put \server\admin it accepts it without complaint.

the login I applied to the /admin alias works and http://localhost serves up the index.html page, use http://localhost/admin and it asks for a log in and then I get the page error after.

It appears that despite the settings, the server wont serve up unless the path is PHYSICALLY set with a drive letter. mayby a symbolic name sucah as %drive% to denote that the PHYSICAL path exists within the same drive that the server is running from the %drive% is the place holder that represents the drives assigned letter.

still doesn't get around the fact that the servers root can be set without a hint of a drive letter yet aliases seem to need an physical path and wont resolve a relative path from the servers settings.


Last edited by senshi on Thu Aug 26, 2004 4:39 am; edited 1 time in total
Back to top View user's profile Send private message
TRUSTAbyss
-


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

PostPosted: Sat Aug 21, 2004 3:22 am    Post subject: Reply with quote

The server does need a drive letter path to point to the root where Abyss is on so what your
talking about is the path where you put the htdocs name in where htdocs is in your Abyss root.
Aliases tend to only work on local root paths where the server is installed to or using a drive
letter , Its impossible to do what your saying , You may try and get an answer from Aprelium
because I think they do have ideas to help people who want to take Abyss on removable drives.
Back to top View user's profile Send private message Visit poster's website
senshi
-


Joined: 05 Nov 2003
Posts: 385
Location: UK

PostPosted: Sat Aug 21, 2004 9:36 am    Post subject: Reply with quote

See thats just it, allot of servers are too reliant upon having a fixed path, when a program is run, one of the environment variables available to the program is the root from which it was invoked, also the server has a path specified so combining the two, the server can check it exists within the invoked path and it can find the relative path by matching the root folder and htdocs folder to the invoked path, so in other words, the serve will be looking at the Command Line string and matching the \servers\htdoc portion of the servers settings to the CL string.

I just dont understand why it has never been implemented as it partly works, all it needs is some work done by the guys at aprelium dev team to help the server resolve relative paths pre & post web root.

this obviously will only work if all paths reside on the drive in question and live within the servers install path with no external paths to folders off that drive, the %drive% parameter or identifier idea would help the server recognise this, the server knows where to find htdocs, so I cant see how it can be an issue to find a relative path to the server.
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