Differences

This shows you the differences between two versions of the page.

services:personal_website [2009/09/09 17:50]
admin
services:personal_website [2012/09/14 09:24] (current)
admin
Line 7: Line 7:
  * must have an SCS linux account   * must have an SCS linux account
-<note warning>You must have an SCS linux account in order to host your personal SCS website; a Vista account is not enough.</note>  +<note warning>You must have an SCS linux account in order to host your personal SCS website; a Windows account is not enough.</note> 
Line 14: Line 14:
To create a homepage, you must: To create a homepage, you must:
-    * Log into your Linux account+    * Log into your Linux account ( [[services:external_access_host_access]] )
    * Create a directory called "public_html" under your home directory     * Create a directory called "public_html" under your home directory
    * Move your homepage files into this directory     * Move your homepage files into this directory
Line 24: Line 24:
<code>http://www.scs.carleton.ca/~user_name</code> <code>http://www.scs.carleton.ca/~user_name</code>
- 
The file called index.html (all lower case) is the default webpage for your directory. In other words if someone tries to access <code>http://www.scs.carleton.ca/~user_name</code> then the file index.html under user_name's linux public_html folder will be displayed. The file called index.html (all lower case) is the default webpage for your directory. In other words if someone tries to access <code>http://www.scs.carleton.ca/~user_name</code> then the file index.html under user_name's linux public_html folder will be displayed.
Line 34: Line 33:
You can transfer files to your website from anywhere on the internet using a windows utility called winscp that can be downloaded for free. You can use any file-transfer utility that you like as long as it supports the scp or ssh protocol. You can transfer files to your website from anywhere on the internet using a windows utility called winscp that can be downloaded for free. You can use any file-transfer utility that you like as long as it supports the scp or ssh protocol.
-From the internet you will need to connect to quest.scs.carleton.ca in order to transfer your files. quest is the school's external access host.+From the internet you will need to connect to access.scs.carleton.ca in order to transfer your files. access is the school's external access host.
<note>File permissions on your website should be set to 644 and directory permissions set to 711 (755 for readable web-directories). </note> <note>File permissions on your website should be set to 644 and directory permissions set to 711 (755 for readable web-directories). </note>
Line 56: Line 55:
==== Password protecting your webpage with .htaccess ==== ==== Password protecting your webpage with .htaccess ====
-If you wish to password protect a specific directory under your SCS webpage you will need to create a .htaccess file in that directory (somewhere under ~/public_html). The .htaccess file needs to have -rw-r--r-- permissions (chmod 644 .htaccess). You will also need a .htpasswd file.+If you wish to password protect a specific directory under your SCS webpage you will need to create a .htaccess file in that directory (somewhere under ~/public_html). The .htaccess file needs to have -rw-r--r-- permissions (chmod 644 .htaccess). You will also need a .htpasswd file. You are required to change permission on your ~/public_html to -rwxr-xr-x (chmod 755 ~/public_html).
You can copy and paste this default .htaccess file: You can copy and paste this default .htaccess file:
Line 66: Line 65:
AuthType Basic AuthType Basic
-require user SCS+# SCS is the username 
 +Require user SCS 
 +# A second user needs a second Require line
</code> </code>
Line 101: Line 102:
 +==== File Directory Listing with .htaccess ====
 +
 +If a URL which maps to a directory is requested, and there is no index file (e.g., index.html, index.shtml) in that directory, then the server will return "Access Denied". Directory listing is now set at the directory level and not at server level.
 +
 +In order to add directory listing create an .htaccess file in the desired directory, or if it exists then append the following line:
 +<code>
 +Options +indexes
 +</code>
 +The .htaccess file needs to have -rw-r--r-- permissions (chmod 644 .htaccess). Make sure permissions on your ~/public_html are -rwxr-xr-x (chmod 755 ~/public_html).
Back to top
services/personal_website.1252533014.txt.gz · Last modified: 2009/09/09 17:50 by admin