"pubweb" Public Web Page service
The "pubweb" service, or Public Web Page service, provides an opportunity for users to easily share data on the web via their account on the ITD Unix Services managed scientific computing servers. Any user with a valid BNL Unix account may use the pubweb.bnl.gov server. If you do not have one, go to the BNL Account Request Form and request a "Unix Systems" account.
Use your preferred method for uploading files to your Unix Datacenter home directory. These systems are listed under Scientific Computing.
Your web page is hosted in your home directory in a sub-directory named "www". If one does not exist, then you should create one. Any files you place in this directory will be available under your URL.
All of the Scientific Computing are accessible via SSH. This means that these systems also support either "scp" or "sftp". "scp" and "sftp" are the basic methods to move files between Unix systems.
Samba is only accessible on sun48.bnl.gov or fido.bnl.gov. Through Windows Explorer (or your Samba client), you can access your home directory via either of these locations (using the user name "johndoe" as an example):
Content in $HOME/www is accessed in the form of the following URL. $HOME represents the full directory path to your home directory on a Unix machine:
Your website is accessible from off-site (and as such, you must not publish content which might be considered private, sensitive, or inappropriate).
As shown by the "https" portion of your URL, web pages on pubweb.bnl.gov are delivered over encrypted communication. This is automatic and no effort is required by you to enable this service.
ITD Unix Services has enabled Apache style access controls for web content hosted on pubweb.bnl.gov. This is access control using a file named ".htaccess" in a given directory.
.htaccess access control files are well documented on the Apache HTTPD documentation web page (http://httpd.apache.org/docs/2.2/howto/htaccess.html), this information will not be repeated here.
File Permissions - HTTP 403 "forbidden" error
Improper file permissions may result in an HTTP 403 "forbidden" error. This is something a user can check on their own but requires some basic knowledge of Unix. For assistance, the following example commands using the user "johndoe". Each example has the command needed to ensure that you
$HOME must be executable by other ( Command: chmod a+x $HOME ):
johndoe@ibm65 ~ $ ls -lad $HOME/
$HOME/www must be executable and readable by others ( Command: chmod a+r $HOME/www ):
johndoe@ibm65 ~ $ ls -lad
Files within $HOME/www also must be readable by others ( Command: chmod a+r $HOME/www/index.html )
johndoe@ibm65 ~ $ ls -l
As some users know, URLs for pubweb.bnl.gov have not always been referenced via the https://pubweb.bnl.gov/~johndoe format. In the past, the the web pages have been referenced a variety of formats, including:
While none of these formats are the definitive URL for accessing web content on pubweb.bnl.gov, they will still work. The web server is configured to use automatic URL rewriting in order to direct users from the old URL to the current format. This way, users with links to their web pages from outside will not need to change those other web pages.
To reach ITD Unix Services for any support issues, please contact the ITD Helpdesk via email (email@example.com) or call x5522. In any communications, please include the name of the machine(s) in question, as well as their operating system, software package and other relevant information which will allow ITD to help you more effectively.