SERVER_NAME cgi variable

Anna Martynova terrible.broom at gmail.com
Mon Jul 6 11:32:26 UTC 2009


As turned out, I need HTTP_HOST. Thank you. :)

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

>
>
> Anna Martynova schrieb:
> > 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...
> > http://shiflett.org/blog/2006/mar/server-name-versus-http-host
>
> so you need  SERVER_PORT (apache) ?
> for the diff between HTTP_HOST and SERVER_NAME see:
> http://shiflett.org/blog/2006/mar/server-name-versus-http-host
>
>
> re,
>  wh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090706/613dc26b/attachment-0001.htm>


More information about the busybox mailing list