http://<IP address of server>/general/and so this is the URL that should be given.
reload <URL>The above syntax will give no indication of a successful attempt (though any errors will be reported). If you have applied hotfix 6, you can also use the -v flag which will print all the HTML retrieved to the screen:
reload -v <URL>
reload http://1.0.128.254/general/will reload the URLs:
Port 80Luckily, you don't need to edit any of the central Apache configuration files as they can be overridden on a per-directory basis. To do this, you need to create a .htaccess (or /htaccess from RISC OS) in the directory. So for instance, in the private sub-directory in the webadmin pages there is a .htaccess file that contains the following:
AuthUserFile /usr/local/etc/httpd-admin/passwords/.htpasswd AuthGroupFile /dev/null AuthName ServerAdmin AuthType Basic <Limit GET POST PUT> require user D-E-L-E-T-E-D </Limit>(You can miss out the Limit directive if you want all access methods to be password protected). The lines mean:
So for instance, if you want to have only one user name which can be used by all staff to access http://ncserver/staff/ you should create a file called .htaccess in the subdirectory staff in the home directory of www.
AuthUserFile /etc/webusers AuthGroupFile /dev/null AuthName "Staff Pages" AuthType Basic require user staffYou will then need to create the user name in the file /etc/webusers which you will find easier if you have applied hotfix 63. There is a command called htpasswd which will set up passwords for you. Hotfix 63 puts a link to htpasswd in a directory which is in your path. This means instead of having to type /usr/local/apache/bin/htpasswd to run it, you will just need to type htpasswd. The syntax of htpasswd can be seen if you just type htpasswd with no arguments:
htpasswd [-c] passwordfile username The -c flag creates a new fileTherefore, the first time do the following:
htpasswd -c /etc/webusers staffand enter the desired password when prompted. And that's all there is to it!
Or at least it would be in the ideal world. By default, Apache is set up to be very secure and to not allow .htaccess files to override any of the main configuration. This means that you will need to edit /etc/access.conf (once you've put Hotfix 63 on) and change the following: Just under <Directory /usr/export/home/www> you will see a line (row 46) that says
AllowOverride NoneChange this to:
AllowOverride AuthConfigSave the file and then type apachectl restart to restart the web server with the new configuration. Without changing this setting Apache will ignore the .htaccess files and not prompt for a password.
[[[[[cc]yy]mm]dd]hh]mmExamples (all times must be specified as 24 hour clock):
date 1030
date 151030
date 04151030
date 200004151030