Difference between revisions of "How To Publish Personal Web Content"
Line 11: | Line 11: | ||
| ''etc/'' | | ''etc/'' | ||
| your ''etc'' directory | | your ''etc'' directory | ||
− | | chmod o+x | + | | chmod o+x etc/ |
|- | |- | ||
| ''etc/www/'' | | ''etc/www/'' | ||
| your document root | | your document root | ||
− | | chmod o+x | + | | chmod o+x etc/www/ |
|- | |- | ||
| ''etc/www/index.html'' | | ''etc/www/index.html'' | ||
| your public home page | | your public home page | ||
− | | chmod o+r | + | | chmod o+r etc/www/index.html |
|} | |} | ||
Revision as of 12:31, 16 August 2016
Create the following directory tree in your home directory:
Directory | Description | Command To Change Permission |
---|---|---|
etc/ | your etc directory | chmod o+x etc/ |
etc/www/ | your document root | chmod o+x etc/www/ |
etc/www/index.html | your public home page | chmod o+r etc/www/index.html |
Ensure that ~/, ~/etc/, ~/etc/www/, and all subdirectories of ~/etc/www are world executable and that all files in ~/etc/www/ and below are world readable. See the above table for the commands to use to change the permissions. You may wish to read How To Secure Your Home Directory.
Populate your ~/etc/www/ directory with the web content that you wish to publish to the web. The file served up the Apache web server as your personal web site's home page is ~/etc/www/index.html.
You can access your personal web site using the following url:
http://www.ece.ubc.ca/~<your username>
For example, if your username is janedoe, then your personal web site could be accessed using:
http://www.ece.ubc.ca/~janedoe
You may be interested in reading How To Password Protect Personal Web Content.