Header left.png

Difference between revisions of "Web Services"

From Systems Group
Jump to: navigation, search
Line 16: Line 16:
  
 
# To start the personal webserver, users must use the <code>webcli</code> tool:
 
# To start the personal webserver, users must use the <code>webcli</code> tool:
  webcli start
+
::webcli start
  This command will prompt for your CS account password, to ensure only you can start your own webpage.
+
::This command will prompt for your CS account password, to ensure only you can start your own webpage.
 
   A successful command will look like so:
 
   A successful command will look like so:
    webcli start
+
  webcli start
    Username: <username>
+
  Username: <username>
    Password:  
+
  Password:  
    Service is starting. It will be available at https://web.cs.odu.edu/~<username> soon.
+
  Service is starting. It will be available at https://web.cs.odu.edu/~<username> soon.
    This may take a few moments.
+
  This may take a few moments.

Revision as of 17:50, 12 February 2020

The ODU CS Department provides faculty and students the ability to host web pages from their CS Unix Account.

Users interact with this system through two main components, the ~/secure_html directory and the new command line tool webcli

Basic Usage

  • Initial setup
  1. SSH into the department's Linux servers (linux-new.cs.odu.edu)
  2. Run the following commands to create a directory at /home/<username>/secure_html and give read and directory listing permissions to other user set:
 mkdir ~/secure_html
 chmod o+rx ~/secure_html
  1. Add some serve-able content to your ~/secure_html directory, a simple example:
 echo "Hello world!" > ~/secure_html/index.html
 chmod o+r ~/secure_html/index.html
  1. To start the personal webserver, users must use the webcli tool:
webcli start
This command will prompt for your CS account password, to ensure only you can start your own webpage.
 A successful command will look like so:
 webcli start
 Username: <username>
 Password: 
 Service is starting. It will be available at https://web.cs.odu.edu/~<username> soon.
 This may take a few moments.