Remotely-Hosted Web Site

abdomendebonairΑσφάλεια

2 Νοε 2013 (πριν από 3 χρόνια και 8 μήνες)

57 εμφανίσεις

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Setting Up a

Remotely
-
Hosted

Web Site

Instructor: Joseph DiVerdi, Ph.D.

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Local vs. Remote Serving


A Web browser renders pages from anyplace


Place an HTML file on your desktop and point
your browser to it


You can view it but nobody else can


Locally served page


Place an HTML file on a Web server and
point your browser to it


Now everyone can view it


Remotely served page


CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Web Developer Skills


Able to log into a Linux server using Telnet
and make changes


Able to upload files from local computer to
Linux server using FTP and make changes


Able to quickly and efficiently edit files directly
on a Linux server without making a local copy
of the files

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Student Accounts


Ulltra Technology
-
owned server


Account at host name:

linus.ulltra.com


HTTP access at URL:

http://
linus.ulltra.com/~account_name/


Account name is:

your last name, all lower case, no spaces


No password (at least for now)

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Student Account Setup


Use Tera Term Pro to login


Use username:

your last name, all lower case, no spaces


Change password using:

passwd


Logout using:

logout


Login to check password


You only need to perform this once

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Single Page Web Site

index.html can be accessed using:

http://linus.ulltra.com/~diverdi/

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Single Page Site


Use:
FTPeditor

Please note that most operations are case
-
sensitive


Make a new directory named "html"


Check its permissions to allow server access

Equivalent numeric code: "755"

Equivalent abbreviated code: "rwxr
-
xr
-
x"


owner: read write execute


group: read execute


world: read execute


All directories must have these permissions


CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Single Page Site


Navigate inside html directory


Make a new file "index.html"


Type in the contents on the next page


Change its permissions to "world readable"

Equivalent numeric code: "644"

Equivalent abbreviated code: "rw
-
r
--
r
--
"


owner: read write


group: read


world: read


All HTML files should have these permissions

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Single Page Site

<HTML>


<HEAD>



<TITLE>First Page</TITLE>


</HEAD>


<BODY>



<H1>This is the first page</H1>


</BODY>

</HTML>

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Single Page Site


Save file to remote server


Test page using your most favorite
browser


Test page using your least favorite
browser


Always use both browsers

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Multi
-
Page Site

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Multi
-
Page Site

<BODY>


<H1>This is the first page</H1>


<A HREF="index.html">first page</a> |


<A HREF="second.html">second page</a> |


<A HREF="third.html">third page</a>

</BODY>

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Multi
-
Directory Site

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

Multi
-
Directory Site

<BODY>


<H1>This is the first page</H1>


<A HREF="index.html">first page</a> |


<A HREF="second.html">second page</a> |


<A HREF="third.html">third page</a> |


<A HREF="members
-
only/index.html">




members
-
only page</a>

</BODY>

CSU
-

DCE 0735
-

Web Security...

Remote Web Site
-

Fort Collins, CO

Copyright © XTR Systems, LLC

User Authentication


Now we'll exclude others from the members
-
only web page...