SERVER_NAME cgi variable

Anna Martynova terrible.broom at gmail.com
Mon Jul 6 10:41:41 UTC 2009


2009/7/6 walter harms <wharms at bfs.de>

>
>
> Anna Martynova schrieb:
> > Hello.
> > I saw comments in the source, that you recommend to set SERVER_NAME
> variable
> > before starting httpd server. But what to do in the case, when server has
> > several addresses and I need to know, what address the client have
> > requested?
> > For example, Apache web server provides this, variable SERVER_NAME is
> > request-specific. I understand, that busybox httpd is not Apache. :) But
> > could you give some hint, how to get it?
> > Thanks in advance.
> >
> >
> >
>
> so far i remember, the apache evaluates the name in the request because
> he may have several virtual hosts.
> The idea behind busybox is that you have a one server/one name setup.
>
> re,
>  wh
>

You are right, but at least busybox host can have several network
interfaces. :)
I need to make a link for client, that directs to the same host, but
different port. It would be nice to link to the same server address, that
client entered to his browser...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090706/ba4b55b6/attachment.htm>


More information about the busybox mailing list