Coursework 2: getting started (3) – hosting static web pages Chris Greenhalgh G54UBI / 2011-02-21.

Slides:



Advertisements
Similar presentations
Building Database Relationships
Advertisements

1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
Web forms and CGI scripts Dr. Andrew C.R. Martin
CS 22: Enhanced Web Site Design - Week 8Slide 1 of 15 Enhanced Web Site Design Stanford University Continuing Studies CS 22 Mark Branom
A digression The next feature of programming HTTP clients that we will consider is user authentication Before considering that, however, we will digress.
Hyrax Installation and Customization ESIP ‘08 Summer Meeting Best Practices in Services and Data Interoperability Dan Holloway James Gallagher.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
4.01 How Web Pages Work.
Coursework 2: getting started (1) – running the phone emulator Chris Greenhalgh G54UBI / Chris Greenhalgh
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
COEN 445 Communication Networks and Protocols Lab 4
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Coursework 2: getting started (2) – using the phone emulator and browser Chris Greenhalgh G54UBI /
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Web Client/Server Communication A290/A590, Fall /09/2014.
APACHE SERVER By Innovationframes.com »
Installing Tomcat on Windows  You may find the Tomcat install shield has some problems recognizing JSDK 1.4 beta installations.  You.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
Creating a Hello App Using Google App Engine. What are Google apps? Apps is an abbreviation for application. An app is a piece of software. It can run.
Remote Accessing Your Home Computer Using VNC and a Dynamic DNS Name.
Linux Operations and Administration
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
CNIT 132 Intermediate HTML and CSS Publish Web Page.
1 HTML (Set Up Public Folder) Some material on these slides is taken directly from
1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Apache + Tomcat. Apache + Tomcat Download mod_webapp.so:
CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES LECTURE 5_1 George Koutsogiannakis/ Summer
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
Installing Apache Axis Setting up your Tomcat server to use Web Services.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
Lab 11 Overview Windows Server Last Labs Lab 12  Cisco Firewall.
Nat Type Change Speed Touch and Thomson Modems. Steps Disable uPNP Static Ip on Console Putty Download Telnet Procedure.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
NJIT 1 Apache Tomcat (Version 6.0) THETOPPERSWAY.COM.
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Installing and Configuring Moodle. Download Download latest Windows Install package from Moodle.orgMoodle.org.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 1 Installing A Web Server.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
4.01 How Web Pages Work.
Web Technology Seminar
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Contents Software components All users in one location:
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Web Development Web Servers.
Tomcat Celsina Bignoli
Warm Handshake with Websites, Servers and Web Servers:
How to create and run CGI programs using the CS web server.
Web UI Basics ITM 352.
Crawling with Heritrix
PHP and Forms.
Rev Up Your Design Cycle With DesktopServer
4.01 How Web Pages Work.
Web Servers (IIS and Apache)
4.01 How Web Pages Work.
Presentation transcript:

Coursework 2: getting started (3) – hosting static web pages Chris Greenhalgh G54UBI /

Contents Hosting static web pages – In CS – On your own computer (optional) 2Chris Greenhalgh

Hosting static web pages in CS Follow these instructions to set up hosting for static (i.e. no server-side scripting) web pages on the CS server(s): – – For general information about accessing/using the UNIX servers see 3Chris Greenhalgh

A first test page Download this simple page or create it using an editor in your public_html directory: – Check/set the file permissions, and enter the URL into the mobile browser (something like): – Errors can include: – Forbidden => file or directory permission wrong, or outside University network (see document) – Not found => URL hostname, path or filename wrong 4Chris Greenhalgh

Test page 5 Hello Hello Hello.html Chris Greenhalgh

Hosting pages on your own computer (optional) If you already have a web server set up (e.g. Apache) then use it Alternatively e.g. Jetty is a simple Java HTTP server: – E.g. – Extract the zip file to a directory – Create a new sub-directory under jetty-X.X.X/ called mobile/ – Copy this file to jetty-X.X.X/contexts/: – Put your web pages in the new mobile/ directory Run Jetty – Double click jetty-X.X.X/start.jar or run in command shell with “java –jar start.jar” 6Chris Greenhalgh

Using Jetty (or another local server), cont. To check/access files served by Jetty: – When run, eventually it should print something like :34:33.127:INFO::Started Note the “:8080” at the end; this is the port it is using – Check the IP address of you computer, e.g. Windows (in a command shell) “ipconfig”, *nix “ifconfig –a”, e.g. IP Address : – From a desktop browser first, try to access the file, e.g. – If that works, try from the emulator… 7Chris Greenhalgh

Possible problems with local hosting Local firewall settings, e.g. windows firewall – Try configuring an “exception” for port 8080 and/or the Jetty program in the firewall If you are inside the University and using the University proxy then it will NOT allow access back to your local machine – Temporarily disable the proxy by setting environment variable HTTP_proxy to (e.g.) “DIRECT” and restart the emulator. Note: you will probably NOT be able to access external web sites (including Google Maps) now. Note that a local browser can use a “localhost” URL to access a local web server but the emulator CANNOT – E.g.: or – The emulator’s “localhost” is the emulator itself, not the computer that it is running on 8Chris Greenhalgh

Conclusions You should now be able to: – Make “static” web pages available from your Computer Science account – View these files on the emulator browser – Optionally Serve static web pages from your own local web server, e.g. Jetty 9Chris Greenhalgh