Web Server FAQ

Frequently Asked Questions

Additional support resources

To find additional questions and answers, and/or to ask your own questions, see the Web Server Support Forum.

Answers

How do I (or someone else) connect to the server?

First, you must determine if anything needs to be done to allow other computers on the Internet to access your computer on a specific port number. If you are behind a router or other type of firewall, you will need to forward at least one TCP port to your computer; This is done in the router configuration, I can not provide you information on this as the task is device type and brand specific. Consult your router configuration manual or router brand technical support, or visit www.portforward.com for more information on this topic.

Second, you should choose a port number. The default (and recommended) port number is 80. The port number must be in the range of 1 to 65535. Some ISPs block certain port numbers. I can not tell you which ones as this information is not known to me, and it changes with time. You can easily check to see if a particular port number is blocked by simply trying it.

Third, determine your Internet IP address. You may be able to learn of your Internet IP address from the NetworkActiv page, Show My IP Address. If this doesn't provide you with it, you may need to get extended help from the Web Site and Web Hosting Basics Tutorial.

Fourth, once you have your Internet IP address and you have a port number chosen, you may enter the port number into the box to the right of the box titled Local interface IP address (located to the lower left of the main window). After you have entered this port and filled out any other information you wish, you may press the Start button.

Fifth, now what you do is form a valid URL using your Internet IP address and your port number. Say your Internet IP address was 1.1.1.1 and you chose port number 200; Your URL would be http://1.1.1.1:200/. When you enter this URL into your browser's address bar (at the top), and press the Enter key (on your keyboard), it should connect to the web server you have running on the port specified in the URL.

A quick tip: If you use the default port number (port 80), you do not need to specify the port number in the URL. For example, with the address previously mentioned, you would simply use http://1.1.1.1/ as your URL.

As long as all is well, other people should be able to connect to your web server using the URL you have formed, but remember, your Internet IP address may change each time you connect to the Internet, or even periodically.

How do I control (customize) what is displayed when a client connects?

If you wish to have a page of your own displayed instead of the Alias listing when a client views your site, you need to have a blank Alias (yes, you can do this by simply entering nothing when it asks for the Alias). Within the folder referenced by the blank Alias you need to have an index.htm (or index.html). As you may know, this file should be in HTML format. For more information on HTML, search the web for HTML tutorial.

If you do not wish for a folder listing to be displayed for a given Alias path, you need to have an index.htm (or index.html) file located in the folder referenced by that Alias path. As you may know, this file should be in HTML format. For more information on HTML, search the web for HTML tutorial.

I set a password, how do I get the server to allow me access?

When you connect to the server and it asks for the password, enter the password you have chosen into the box titled Password but leave blank the box titled Username.

When I set an access password, why does it appear so long?

Your password is never stored in RAM for longer than several milliseconds, never stored on disk, and never transmitted across your network or the Internet (with this program that is). The password you see in the box is actually a 32 hex character digest hash of your password and the server name.

Do not worry about how the password is stored, as to access the server, one will need to enter the password that you have entered.

How do I make sure that the password I entered is correct?

After you enter your password into the server, try logging in to the server locally. If you have chosen either 127.0.0.1 or blank as the local Interface IP address and you have also chosen to use the default port (port 80), you should be able to connect using http://localhost as the URL. If you have a more complicated setup, you may use the URL format specified in the the previous FAQ article, How do I (or someone else) connect to the server?

Can I have the program minimize to the System Tray?

Yes, to have the program minimize to the System Tray when the Minimize button is pressed, follow these steps:

  1. Click the button entitled Preferences (located on the main window).
  2. Click the button entitled Minimization Options (located on the new window that popped up).
  3. On the Minimization Options window, check the first three check-boxes (and possibly some of the others if you wish) and then click the OK button.

How can I view the usage statistics for my site(s)?

Follow these steps:

  1. Enable the statistical system so that statistics are collected. This is done via the Enable the Statistical System checkbox, located in Preferences->Preferences for the Statistical System.
  2. Perhaps wait until you have some statistics, such as after you or another has viewed the site.
  3. Access (view) the statistical information. This can be done in two ways... (A) Right-click just below the alias/folder list (the big green one) on the main dialog and choose the View Statistics for option, or (B) Open a Web browser, browse to your site (however you normally do), and then append (add) to the end of your URL - the alias (hits by default unless you changed it in the settings). This will look something like http://localhost/hits/

Note: If you have more than one domain entered into the server, you will need to access that domain in the browser to see the stats. For example, if you had domain-one and domain-two, you would access http://domain-one/hits/ for domain-one's statistics and http://domain-two/hits/ for domain-two's statistics. With the case of multiple domains, accessing http://localhost/hits/ would show the statistics for the [default] domain, which is for when someone accesses the server (perhaps with an IP or Hostname) without using a domain that is in the program's domains list. This of course would not be true were you to have actually entered localhost into the domains list.

How can I allow people to upload files to me via my website?

Users of version 3.0 and higher, follow these steps:

  1. On the right-hand side of the program's user interface, press the Security options button.
  2. Locate the Upload support outline box (on the right-hand side of the Security options dialog.
  3. Check the Allow clients to upload files to this server checkbox.
  4. Press the Configure the Alias path for Easy Uploading button.
  5. Make sure that Enable an Alias path for Easy Uploading is checked (enabled).
  6. If you wish for the Alias path used to be something other than the default value (that which is first shown in the Path (alias) used to access this system: text field). Click the Set path button and enter the desired value for the Alias path.
  7. Press the OK button (on the Alias path for Easy Uploading dialog).
  8. Now, at the bottom of the Upload support outline box is a field with a button titled Choose folder. Click this button and choose the folder you wish for the uploaded files to be stored in.
  9. Once done with step 8, press the OK button (on both the Browse for Folder dialog, and the Security options dialog.
  10. Now that you have setup Easy Uploading, you need to create the URL that will be used to access the Easy Uploading system. Follow the steps outlined in How do I (or someone else) connect to the server? to create your URL, and then append /upload (or whatever you have specified for your Esay Uploading Alias path) to the end of it. For example, if your URL is http://1.2.3.4 and you left the Easy Uploading Alias path set at the default value, your upload page URL would be http://1.2.3.4/upload/

Users of version 2.x, see the NetworkActiv article How to POST files for information and instructions on how to allow your clients to upload (POST) files to you via your website.

Why does it give me a 400 Bad Request when I try to POST a file?

The POST system of this program was only designed to support HTTP/1.1 (not 1.0) and was only tested with the latest version of Internet Explorer and Mozilla Firefox. Chances are that the browser you are using is not correctly sending or is not sending all of the necessary information with the POST command to the server.

Why can't I upload files?, Why does it give me a 403 Forbidden when I try to POST?

Before your clients can upload files to you, you need to Enable (Allow) upload support.

To enable upload support and to choose an upload folder, please click on the button entitled Security options (located on the right side of the main dialog). On the right side of the Security options dialog there is a large square outline entitled Upload support. Within this large square outline is contained the security options pertaining to and including the ability to enable/disable upload support and the ability to choose an upload folder.

Where are the files saved when I POST (upload) them?

There is a set folder specified by you in the program settings that allows you to choose where the files will be saved when you POST (upload) them.

Please click on the button entitled Security options (located on the right side of the main dialog). On the right side of the Security options dialog there is a large square outline entitled Upload support. Within this large square outline is contained the security options pertaining to and including the ability to enable/disable upload support and the ability to choose an upload folder.

Can NetworkActiv Web Server run multiple domain names at once?

Yes, NetworkActiv Web Server version 3.5 and higher has native multi-domain support. To enable this support, go to the Preferences and check the button entitled Show multi-domain settings.. Once enabled, there will be new settings under the main alias/folder listing on the main dialog.

If you are using an older version than 3.5 and do not wish to upgrade, see the NetworkActiv article Using JavaScript to Run multiple Domains.

Do I need multiple IP addresses, one for each domain?

No, you can have several (or more) domains being served via just one IP address and just one machine, running just one instance of the program, with just one port.

It is part of the HTTP/1.1 standard that the domain name be sent as part of the request header of each request. This is how NetworkActiv Web Server differenciates between the domains.

Simply configure the DNS records of all your domains to point to your (one) Internet IP address.

Note also that if you are using an NAT gateway (or broadband router) then you will be able to have multiple machines (including the machine running NetworkActiv Web Server) all running on just one Internet IP address. This would require just one port to be forwarded to the machine running the web server software. For more information about setting up port forwarding with your router, see www.portforward.com.

Is there anything cool that I can do with CGI, other than counters and such?

Yes, there most certainly is.

See the NetworkActiv article CGI Secrets.

Can NetworkActiv Web Server share network folders (via Windows File Sharing)?

Not directly, but yes.

Simply map the network path as a network drive and then have NetworkActiv Web Server share root or a folder of the mapped drive letter.

I have more than one user, can I have multiple upload folders?

Not directly, but yes.

The build-in upload system does NOT support multiple upload folders, but you can use a PHP or other CGI based system to allow for there to be multiple upload folders as well as a cookie based login system that could allow for individual or group based upload passwords. Do a search on the Internet for information on PHP upload scripts. Note that PHP (available from www.php.net) is required before you can use PHP.

Can I have separate passwords for each Alias (folder) and/or just protect select folders?

Not directly, but yes.

The build-in password authentication system does NOT support multiple passwords or usernames, additionally, it does NOT support per-folder authentication, but you can use a PHP or other CGI based authentication system. This system must not use HTTP authentication but must use a login based system, such as that of phpBB. Do a search on the Internet for information on PHP authentication. Note that PHP (available from www.php.net) is required before you can use PHP.

I want to run a PHP script on my site, how do I do it? Is additional software required?

First, you need to obtain the PHP scripting handler from www.php.net (version 5.x or later is recommended). It is recommended that you download the Windows Binaries package as this should be easier; Download either the zip package or the installer package they will both work with NetworkActiv Web Server. If you do not have Windows XP and do not have a way to open and extract zip files, I recommend the GNU freeware program, 7-Zip, available from www.7-zip.org.

If you have chosen to download the Installer package of PHP, you may be able to simply install it and then start up NetworkActiv Web Server. If you did not use the Installer package or PHP does not seem to be enabled in the server (or if you just want to make sure that it is), press the Preferences button and then the Configure CGI, PHP... button. On the Server-Side Scripting Configuration Dialog press the Locate the file button. Now browse to where you have installed or extracted PHP to and choose the php-cgi.exe file. Now simply press the Okay buttons and PHP should be enabled and ready to use with the server.

Please do not e-mail NetworkActiv with questions pertaining to specific PHP scripts such as phpBB and related issues that you may be experiencing. PHP scripts are essentially programs, and as such can have bugs and issues that require either someone with a lot of time or with experience using that particular script to be able to resolve the bugs and/or issues.

If you Are having issues with the PHP script or possibly with PHP (most likely due to it not being configured correctly) and you do not feel confident in trying to resolve the problem yourself, it is advised that you contact the script maker (or associated community) and/or the PHP community for assistance and other information.

How do I get NetworkActiv Web Server, phpBB, and MySQL to work together?

NOTICE: This FAQ article was pieced together from various sources and is provided without warranty, may be incomplete, and your usage of it shall be at your own risk.

First, be sure to have PHP installed (as specified in the previous FAQ article (above)).

Second, be sure to have the PHP ini file (in PHP's main installation or extracted to folder) be configured to support MySQL. This involves (A) un-commenting one or more of the lines for the MySQL DLL(s), namely ;extension=php_mysql.dll (by removing the preceeding semicolon (;)). Be sure that you edit the correct PHP ini file as there are usually more than one (one is active and the other is named so that it's not active, use common sense to determine which one (php.ini is the active one)); (B) You may need to copy one or more of php5ts.dll, php_mysql.dll, php_mysqli.dll, and libmysql.dll (and/or possibly others!) to the Web server's installation folder; (C) You may need to somehow obtain and install libMySQL.dll to your system; (D) You may want to have the main PHP installation or extracted to folder as part of your system path, this might by so by default if you installed PHP; (E) You may wish to (or it may be necessary) to use the latest version of MySQL (even if Alpha or Beta); (F) There may be other configuration tasks necessary to get this all working. Give a look at some of the Web pages that were found relating to this topic.

Related links:

www.mysql.com

www.php.net

uk.php.net/manual/en/ref.mysql.php

When I try to use a download manager (or perhaps an uncommon browser) to download files, it continually asks for the password. What is wrong?

Be sure to not have odd characters in the Server name field located to the lower right of the program's main user interface. Try setting this to something simple, such as a single word containing only lowercase, simple letters.

Other than this it is possible that the download manager(s) that you have tried do not support HTTP Digest Authentication. This authentication is much more secure than Basic HTTP Authentication and this server does not support the later (Basic).

Programs that users have mentioned to be affected by this problem:

How do I set-up IP address filtering with NetworkActiv Web Server?

Click the Security options button at the lower-right of the main screen and check (by clicking) the checkbox titled Restrict client access by filtering.. After having checked it, press the button located directly under this checkbox. This button is titled Set filters. This will allow you to set up IP address filtering.

Note that on the Filter Setup dialog at the mid-upper-left are two button looking boxes. When you click one it switches (though you may not see it) to the list of IPs for that type of filtering. You can have IP ranges in both lists at once. The number in the ( )s shows the number of IPs in each list so that you don't need to click one to be sure that it's empty (if it's zero). To quickly enter an IP or host resolved IP, simply enter it (the IP, Hostname, or Domain) in the green box at the upper-left and click the Copy to filters button (to the right). This will copy it to the fields at lower and then that IP can be entered into the currently selected list simply by clicking the Add this IP range button.

The two lists (pro and con filtering) work in such a way that a client is only accepted if its IP passes both filters (each list as a separate filter). Note that both lists are always enabled as long as they have something in them, and regardless of which is selected. The selecting is just for choosing which you are currently viewing and working with.

One more thing... Back on the Security options dialog near the lower-right is a checkbox titled Send 403 responses to requesters from blocked IP addresses.. When checked, this will make it so that blocked IP visitors will get a 403 Forbidden message rather than the browser simply saying that the page could not be found/displayed. If you simply are trying to get rid of those annoying worm connection attempts then you are probably better off leaving this option un-checked so that blocked requests don't show up in the list or waste any significant bandwidth.

How can I download big (> 2GB) files correctly?

For support of large file transfers with NAWS, procure the following: