httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <apa...@gej-it.com>
Subject RE: [users@httpd] Aliases for non-CGI references
Date Sat, 25 Jan 2003 20:57:43 GMT
I don't think I got your point.
>From what I understood, I guess you have an HTML issue here rather then
Apache.
When you add links to your pages, add them as /somedirectory/pic.jpg and not
the whole link, not as e:/somedirectory/pic.jpg and not as
www.domain1.com/somedirectory/pic.jpg

Just use the route that will be compatible with any base stracture.

All the best,
Jeff Cohen

> -----Original Message-----
> From: Doru-Catalin Togea [mailto:doru-cat@ifi.uio.no]
> Sent: Saturday, January 25, 2003 3:55 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Aliases for non-CGI references
> 
> Hi!
> 
> I am developing some web-pages on my home computer, but publish them on an
> ISP's webserver.
> 
> While at home my links contain hard-coded references like
> "E:\someHTMLDirectory\file.html" or "E:\somePicturesDirectory\pic.jpg" and
> I can test them.
> 
> However, when publishing the web-pages, the links should refer to complete
> URLs like "http://myDomain/someHTMLDirectory/file.html" and
> "http://myDomain/somePicturesDirectory/pic.jpg".
> 
> Converting the referance between home and web locations "by hand" is quite
> laborious, and there must be a smarter way of doing it.
> 
> If running the win32 Apache 2.0.44 at home, I guess I could set it up to
> convert references like "http://myDomain/someHTMLDirectory/file.html" to
> some local file, on the fly. At least when doing CGI, one can define
> aliases to the CGI directory.
> 
> Can anyone tell me how to define "http://myDomain/" to be a general alias
> for "E:/", for use in referances which are not calls to CGI programmes? (I
> used to run Apache 2.0.43 on win 2000 Pro, it looks now that I'll move
> over to 2.0.44 on win XP pro).
> 
> Since I generate most of my pages with Python scripts, I could generate a
> double set of them, one for home and one for the web, each one with
> links correctly coded in, but something tells
> me there must be a more elegant way of solving the problem, for instance
> by means of using a properly set up web-server. Is there any other 'pro'
> approach (that is, one that doesn't involve a web-server)?
> 
> Thanks if you can help,
> Catalin
> --
> 
> 
> 	<<<< ================================== >>>>
> 	<<     We are what we repeatedly do.      >>
> 	<<  Excellence, therefore, is not an act  >>
> 	<<             but a habit.               >>
> 	<<<< ================================== >>>>
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message