web:webpublish:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
web:webpublish:start [2017/01/25 11:06] – seela | web:webpublish:start [2017/01/30 12:57] (current) – jas | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Publishing |
- | \\ | + | |
All local users may use our web server to publish pages. The directory " | All local users may use our web server to publish pages. The directory " | ||
- | \\ | + | |
http:// | http:// | ||
- | \\ | + | |
- | where name is your login name. Any file you place in this directory is accessible from this URL. For example if you create a file called " | + | ... where name is your login name. Any file you place in this directory is accessible from this URL. For example if you create a file called "~name/ |
- | \\ | + | |
http:// | http:// | ||
- | \\ | ||
- | The www.eecs.yorku.ca web server does not have any special privileges on the system. As such, you must give it access to read any files that you wish to publish on the web. To do this: | ||
- | \\ | ||
- | You must have the " | ||
- | chmod o+x $HOME $HOME/www | ||
- | \\ | ||
- | This bit is turned on by default when your account is initially created. | ||
- | You must have the " | ||
+ | The www.eecs.yorku.ca web server runs as a user " | ||
+ | |||
+ | For the web server to be able to access your www directory, both your home directory, and your " | ||
+ | |||
+ | % chmod o+x ~name ~name/www | ||
+ | |||
+ | The " | ||
+ | |||
+ | % ls -ld ~name | ||
+ | drwxr-x--x. 9 user user 4096 Dec 22 23:18 /home/user | ||
+ | |||
+ | Here you can see that the permission for " | ||
+ | |||
+ | The web server must also be able to read your file: | ||
+ | |||
+ | % chmod o+r ~name/ | ||
- | chmod o+r $HOME/ | ||
- | \\ | ||
If you are using CGI scripts you will also need to set permissions appropriately. See the CGI script documentation for more information on this. | If you are using CGI scripts you will also need to set permissions appropriately. See the CGI script documentation for more information on this. | ||
- | \\ | + |
web/webpublish/start.1485360395.txt.gz · Last modified: 2017/01/25 11:06 by seela