help with a multi process http server.

runrev at animabit.de runrev at animabit.de
Mon Jan 22 15:37:16 EST 2007


Hi Andre,

I hope I understood you correctly:

did you try the old <base href=""> tag?

If you use in the header of the first html file:

<head>
<base href="http://server2.com:9999">
  <!-- ...  ... -->
</head>

all will be loaded from the server2 at port 9999.
A declaration like
<img src="/src/logo.gif">
will become like
<img src="http://server2.com:9999/src/logo.gif">.

 
If you put in ANY html page delivered from your servers
<head>
<base href="http://schedulerserver.com">
  <!-- ...  ... -->
</head>

all requests will be loaded from schedulerserver.com at port 80 even if the parent page was delivered from another server.


Even in the old days of HTML one could send a <base href> tag in the head of the html-file and all the following relational links have been calculated in the browsers according to this base. I think this works in all browsers on the market.
If you have a php or shtml generated index file on the main server which sends a first html page with such a base href tag, the browsers will connect to the declared server for downloading and so on - you do not need to parse any pages, the relational base mechanism makes the rest.
  
Even the favicon can be declared explicitely:
compare 
http://www.selfhtml.org/
http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=base+href
there might be english versions also


and any stuff comes from the second server ...

http://de.selfhtml.org/html/kopfdaten/beziehungen.htm#quellen
favicon in line 4 of the header:

<head>
<!-- ... andere Angaben im Dateikopf ... -->
<link rel="stylesheet" type="text/css" href="../../src/selfhtml.css">

<link rel="shortcut icon" type="image/x-icon" href="/src/favicon.ico">

<link rel="author" title="Impressum" href="../../editorial/impressum.htm">
<link rel="contents" title="Inhaltsverzeichnis" href="../../navigation/inhalt.htm">
<link rel="index" title="Stichwortverzeichnis" href="../../navigation/stichwort.htm">
<link rel="search" title="Suche" href="../../navigation/suche/index.htm">
<link rel="help" title="Hilfe" href="../../editorial/index.htm">
<link rel="copyright" title="Urheberrecht" href="../../editorial/copyright.htm">
<link rel="top" title="SELFHTML" href="../../index.htm">
<link rel="up" title="HTML-Kopfdaten" href="index.htm">
<link rel="next" title="Durchsuchbarkeit mit Server-Kommunikation" href="durchsuchbarkeit.htm">
<link rel="prev" title="Adressbasis und Zielfensterbasis" href="basis.htm">
<link rel="first" title="Titel einer HTML-Datei" href="titel.htm">
<link rel="last" title="Durchsuchbarkeit mit Server-Kommunikation" href="durchsuchbarkeit.htm">
</head>

Regards, Franz

Mit freundlichen Grüßen
Franz Böhmisch

boehmisch at animabit.de
http://www.animabit.de
GF Animabit Multimedia Software GmbH
Am Sonnenhang 22
D-94136 Thyrnau
Tel +49 (0)8501-8538
Fax +49 (0)8501-8537






More information about the use-livecode mailing list