Primary Web Server FAQs
This section provides frequently asked questions (FAQs) related to DWebPro Primary Web Server.
|
Can I use DWebPro as an Intranet server (for example, on a LAN)? |
|||
Yes, you can. By default, the DWebPro primary Web server listens on the 127.0.0.1 IP address. Refer to the IP field in the Web Server tab for more information. With this configuration, you will be able to access the hosted Web site from the local machine only. To allow others on the LAN to access your DWebPro primary Web server, you have to configure it to listen on the LAN IP address of the machine on which DWebPro is running (for example, 192.168.0.1). You can achieve this in two ways.
|
|||
|
How to enable logging features? |
|||
DWebPro does not use logging by default, however you can easily
configure it to use its logging feature. To enable logging, use the Log Level and Log Path fields
in the Web Server tab. For example, the following
settings in [WebServer] LogLevel=1 LogPath=##DWEBPRO_DOCUMENTROOT##\logs |
|||
|
How can I use aliases? |
|||
Aliases specify folder aliases similar to those provided by
Apache. When creating or maintaining aliases in [WebServer] Aliases=/docs=C:\web\documentation
|
|||
|
How can I enable/disable directory listings? |
|||
You can enable the directory listing feature by editing [WebServer] DirectoryListing=1 Setting this field to 0 disables the directory listing feature. When the directory listing feature is disabled and the browser navigates to a directory that does not contain a default document, the 404 Not Found page displays. |
|||
|
How can I enable/disable the rewrite engine? |
|||
The rewrite engine is enabled in the [WebServer] RewriteEngine.Start=1 RewriteEngine.FileName=##DWEBPRO_DOCUMENTROOT##\rewrite.ini RewriteEngine.ReloadOnEveryRequest=0 As an example of redirecting Web traffic to a particular set
of files (in this case, the "/docs" location), we can
create the following rule in # This is a sample of the Rewriting Engine usage
RewriteCond %{REMOTE_ADDR} 127\.0\.0\.1 [OR]
RewriteCond %{REMOTE_HOST} ^localhost*
RewriteRule ^.*?/(\d*?)$ /docs/index.html
You can test your rewrite rules using the Rewrite Engine Tester tool, which is located under the DWebPro Utilities Program Group.
|
|||


