![Reinhardt System MWS 10 Скачать руководство пользователя страница 47](http://html.mh-extra.com/html/reinhardt-system/mws-10/mws-10_manual_1435273047.webp)
REINHARDT
System- und Messelectronic GmbH
Bergstr. 33 86911 Diessen-Obermühlhausen Postfach 12 41 D-86908 Diessen Tel. 08196 - 934100
MWS_55_e.indb Page 47
geändert am 26.10.2017 von DO
Manual MWS 55 / MWS 88 / MWS 10 and Sensors 55
If the station gets a HTTP-GET request from the browser at first the IP-address of the sender is
checked:
- if this is the Administrator, at first the ADMIN directory is searched for the requested file.
If the file is not found there, next the PRIVILGD directory and at last the HTML root directory
is searched for the requested file.
- if this is a privileged user, at first the PRIVILGD directory and then the HTML root directory
is searched for the requested file.
- if this is a standard user only in the HTML root directory is searched for the requested file.
If the requested file is not found a "404-File not found" error page occurs.
Example:
There is an Aministrator set by *
ADMIN SET ADDRESS 192.168.100.25
, standard users form
the internal network set by
*ADMIN SET INCLUDE 192.168.100.x [HTTP]
and two privileged
users set by
*ADMIN SET INCLUDE 192.168.100.10 [HTTP*]
and
*ADMIN SET INCLUDE
192.168.100.11 [HTTP*]
.
- If the computer with IP address 192.168.100.25 opens the browser and the station's IP address
is entered there, the browser initiates a HTTP-GET request, i.e. GET / HTTP/1.1.
The station recognizes "/" as landing page "index.htm" and the Administrator's IP address, so at
first the directory ADMIN is searched for "index.htm", then the directory PRIVILGD and at last
the HTML root directory, where there should exist a "index.htm" page.
- If the same request comes from IP address 192.168.100.10 or 192.168.100.11 the search on the
SD card for "index.htm" starts in the directory PRIVILGD and then in HTML root directory.
Each other user from the SUB-net 192.168.101. will see the "index.htm" page from the HTML
root directory.
- Requests from users in other SUB-nets (i.E. 192.168.101.) will not be answered and will get a
time out message from the browser.
For standard user are able to open pics or JAVA scripts in the STYLES or JS directory, in the
ADMIN and / or in the PRIVILGD directory also STYLES and JS folders may be created, which
only can be opened by Administrator or privileged users.
When creating WEB sites the directory structure needs not to be considered, for the weather sta-
tion ignores path details, i.e. a request like "192.168.240.99/global/xyz.htm" is treated the same
as "192.168.240.99/xyz.htm" (if 192.168.240.99 is the IP address of the weather station). Only
the files's suffix (.htm / .jpg /.css) and the access permission determine from which directory the
searched file is read.
So after creating the local paths can
be kept, i.e. in the picture on the right
side in line 7 also may be written
href=" meinstyle/admin.css“ or in line
9 the local Jave-Script folder „java“
heißen: src=“../java/senscfg.js“
Tips:
- Already when creating files regard the length of the file names max. 8 char 3 characters
suffix (8.3)
- Using many templates or pics increases the load time of HTML pages for the WEB server is not
a GigaHertz controller but a energy saving CPU!
- Better use more small sites than less big sites. This especially is valid for embedded Java Script
and Style Sheet files!