コンテンツ

  1. HOME
  2. Services
  3. Hosting services
  4. WEB Hosting service
  5. The usage
  6. How to use WEB Hosting service (type K)

How to use WEB Hosting service (type K)

We explain here how to use WEB Hosting service. It is necessary to apply to use this service. Persons who wish to apply to use this service should see 'Applying for Services' for WEB Hosting service.

Files needed to use WEB Hosting service

【Required】

  • html files or script such as PHP/CGI
  • .forward+ file (mail forwarding setting file)

【Optional】

  • PDF and image files that can be put on Web pages
  • Access counter files
  • .htaccess file (Web site setting)
  • .htpasswd file (access authentication setting)

Go to the top of the page

Uploading of web contents and setting file

Capacity of publishing space (uploading destination)

To take advantage of the publication of web pages and mail transfer using this service, you need to transfer (upload) web contents and setting files to the file server. Capacity of contents publishing space of the Web Hosting service is normally 5GB, however, it is possible to increase the capacity to 20GB or 50GB by paying an additional usage fee as follows.

Extension to 20GB 3,000yen/year
Extension to 50GB 9,000yen/year

How to connect to file server

FTPS is used to transfer files to file servers in this service.

Host to be connected is as follows.

Host name ftpserv.iimc.kyoto-u.ac.jp
Type of server FTP- FTP over explicit TLS/SSL
Connection port number five digit number designated to each user
Type of logon normal

The number designated in the port consists of five digits, excluding characters at the beginning of account number which is newly issued every time when the service is applied for.

Please refer to "File transfer to the server by FTPS" in "contents creation guide" . Details of how to install Filezilla and FIreFTP which is a client of corresponding to FTP is posted. In addition, even if the other FTP client, it is available if it is corresponding to the FTP standards of this service.

It should be noted, FTPS is not available from eduroam environment which has been in service KUINS.

Account connectable to file server

The account user ID for file transfer to server is SPS-ID o that was used at the time when application was made for a service. The password will also be the password used for the SPS-ID.

You can also register other SPS-IDs or ECS-IDs to transfer files by several persons. However, the account that actually uploads content onto a server is the user ID beginning with (z59***), which is an account number, thus other people can override the uploaded files. Please be careful about this point. When you want to transfer files by several persons, please login to "Hosting Portal" and set the co-user (setting can be executed only by applicant). Specifically, click "virtual host management" in the left menu on the screen after login, click "user" on the left side of the account to which you want to add a joint user, and setting screen will be displayed., At the end, enter the ID you want to add by pressing the "Add" button at the bottom and click the "ID presence check". And the registration will be completed by clicking "Register" button,

In addition, when you ask vendors outside the university to upgrade or create content on the Web, we can provide a temporary account for the vendor. If necessary, please confirm the vendor's name, contact information (tel and email), number of financial accounting system, operation period and apply from "vendor ID application form" .

To receive an issuance of vendor's ID, you are required to agree with the Regulations for vendor's ID in Hosting/WEB Hosting service.

Directories which users access

As we use the WEB Hosting service, directory which users access in the server is as follows. It should be noted that each of the directory has application and all the directories are necessary for the services, please do not delete these directories or change their names.

Webホスティングサービスでのサーバディレクトリ構造

The full path for the home directory is /hostinghome1/z59***.

※To users of CGI/PHP package and Wordpress package
The Web server operates under the authority of Apache, the owner and the group is apache in the case a file is created with the PHP program. The vhome directory is a readable-writable directory by not only user's authority but also apache's authority. and External data of Apache's authority, such as files handled with the PHP program, are put in this directory.

In order to use the PHP fopen function to designate the file of a dedicated directory, describe as follows. $file=fopen("/var/www/hostinghome1/z59***/vhome/filename", "w");

In the 【z59***】part, you should write the user ID Enter the user' account number for [Z59 ***]

Uploading destination of web contents

Below public_html directory which lies ahead being connected to the server with the FTPS-enabled client, has become a space to put the Web content. That is Document Root, http: //domain name of applied virtual host / has become this directory If you upload Web content files here, you can open this content to the public on the Web.

Individual settings for each directory using .htaccess

To create individual settings for Web server behavior, you must create an .htaccess file. You can create settings for the following items for WEB Hosting services:

  1. Limit (settings for restrictions on access)
  2. AuthConfig (settings for authentication)
  3. FileInfo (settings for files, languages, and MIME)
  4. Options (function settings for php_value and php_flag are available

Following is available for users who requested.

  1. Indexes (With mod_expires, use of the cache is available when accessing the Web page.)

If you wish to request for above, please let us know with the user account for WEB hosting service using an inquiry form.

Access restrictions

When you want to restrict access, define restriction conditions on .htaccess files, then upload them to the directories for which you want access restrictions

The format for restricting access with .htaccess is as following.

  • Basically deny all access, but permit access from designated IP addresses
  • Order deny,allow
    Deny from all
    Allow from authorized IP addresses
    Allow from authorized IP addresses
    ・・・

  • Basically permit all access, but deny access from designated IP addresses
  • Order allow,deny
    Allow from all
    Deny from rejected IP addresses
    Deny from rejected IP addresses
    ・・・

  • Allow access only from on-campus, deny access from off-campus
  • Order deny,allow
    Deny from all
    Allow from .kyoto-u.ac.jp
    Allow from 130.54.0.0/255.255.0.0
    Allow from 133.3.0.0/255.255.0.0
    Allow from 10.224.0.0/255.224.0.0
    Allow from 192.168.128.0/255.255.128.0

  • Restrict access according to authorization (Basic authorization)
  • AuthType Basic
    AuthName "By usercheck"
    AuthUserFile /hostinghome1/z59***/".htpasswd location"/.htpasswd
    require valid-user

    Enter the user ID in 【z59***】.

    ※For "the location of the .htpasswd", describe all of the hierarchy from a directory under z59*** to the directory where the files located.

    Format for .htpasswd (file defining user name and password used in authentication)

    example1:FmDKsLmw8hSk2
    example2:6kwwgnhfCFNw

    Put .htpasswd in a location that is not open to the public other than html directory. For .htpasswd, use an encrypted password. You can create an encrypted password here.

How to check the usage of publishing space

Access the Web with the address below to examine how much the publishing space have been used. https://hp.iimc.kyoto-u.ac.jp/used.cgi?z59***

Enter the user ID in 【z59***】

Please login with your SPS-ID or ECS-ID for authentication by Shibboleth of the Integrated Authentication center.
(Please bookmark the page which is displayed after authentication, not the authentication page if you want to bookmark this page)
Please note that the displayed disk usage is updated every night, so it does not reflect real-time information.

Creation of Web content

With WEB Hosting service, you can publish Web content, such as Web pages by using shared server. In the 'Guide to Creating Content' we provide various information on creating Web content. For more information, please refer to Web sites and commercially available publications.

Use of languages such as PHP/CGI

With WEB Hosting services,you can publish .Web applications using languages such as PHP and CGI if you apply for the option of CGI/PHP package or WordPress package.you can publish Web applications using languages such as PHP and CGI.
CGI script and PHP script, along with HTML, should be placed in the public_html directory. As for the file name, please specify ".cgi" to the file identifier such as "file name .cgi". In the case of PHP scripts, please specify ". php".

The languages on the Web server are as follows.

LanguageVersionVersion
(New environment)
Execution path
PHP 5.3.x 7.3.x /usr/bin/php-cgi
Perl 5.10.x 5.16.x /usr/bin/perl
Python 2.6.x 2.7.x /usr/bin/python
Ruby 1.8.x 2.0.x /usr/bin/ruby

Installation of access counter

In the WEB Hosting service, CGI program of access counter for Web pages to be published in the WEB Hosting service are published.By uploading the CGI program onto the Web server, you can install an access counter on your Web page.
To use this program, please download the ZIP file below.

Download of access counter

How to install and use has been described in the README.txt file under the counter folder which is created after the ZIP file decompression, please refer it with a text editor.
You can see the default counter design at the page below.

List of access counter designs

※ You can customize the design of your counter using own GIF image which is created. Please see the README.txt file for details.

MySQL and PostgreSQL Server

MySQL and PostgreSQL are available in this service.

Host name of these servers is ,dbs2.iimc.kyoto-u.ac.jp. Both account and database name for the database is the user ID (z59***).

Use of SSL

In the WEB Hosting service, you can use encrypted communication by SSL.by applying for the option of SSL package. Additional usage fee does not occur when using SSL with this package. In addition, unless otherwise specified, UPKI open domain certificate which is provided by NII is used, you can receive the issue of this certificate free of charge. (If you use the certificate of other institutions, you should bear the incurred fees In the case of using the cert)
ificate of NII, In the case of using the certificate of NII, the IIMC is in charge of procedures required to issue.( In the case of using certificate of other organizations, we pass you a CSR, and you must apply yourself.

Please contact to the IIMC for details on how to use the SSL.

WEB Hosting service and WordPress package

In the WEB Hosting service, WordPress package which enables easy installation of WordPress is offered. You need to perform the installation at the time of the initial connection. Installation is performed from a web browser. Please see this page for details.

It should be noted that, although this package offers Web publishing environment in WordPress, the support does not cover with how to manage the contents and site construction Please perform site-building yourself with information of books and web. If you cannot perform site-building by yourself, please entrust it to off-campus vendors.

View and analysis of log

In the WEB Hosting service, log of events on the Web server is continuously recorded. users can see and analyze these events. Two logs, an access log and an error log, are available to users.

Log files location

The recorded log is saved under the logs directory, where it is linked to an FTPS client server. You can download it using FTPS.

In the WEB Hosting service, since "load balancing" which responds to an equal share of http requests has been installed in the web server, the log will be recorded separately for each server to respond (The number of the web server is assigned in each file name of the log)

Log rotation is carried out regularly to the log which is saved and the period to be stored in directory is about three months (12 weeks).

Use of Webalizer

With Webalizer, you can see various kinds of data such as the number of visitors to a page and the number of accesses for any given period of time via the Web browser. These statistics are automatically generated at every night. If you enter the address below on your browser, a page with these statistics will be displayed. https://hps.iimc.kyoto-u.ac.jp/webalizer/z59***

Enter the user ID in 【z59***】

Please login with your SPS-ID or ECS-ID for authentication by Shibboleth of the Integrated Authentication center.in the page of the analysis result.
(Please bookmark the page which is displayed after authentication, not the authentication page if you want to bookmark this page)

DNS setting

Please refer to the following KUINS site for the management of the sub-domain below kyoto-u.ac.jp/

List of sub-domains (KUINS sites)

By using a proxy server for a test before opening the Web site to the public, even before the virtual domain is registered on the DNS, theWeb site which is going to be opend can be provisionally displayed and you can confirm its operation and visual quality.

In order to use, please set the item of automated scripts in the "Proxy Settings" in the browser as shown below, and it will be provisionally displayed if you access with the address of the virtual domain in the browser.

http://hps.iimc.kyoto-u.ac.jp/proxy.pac?z59***

Enter the user ID in 【z59***】

※Proxy for the pre-publication test is only available for connecting from on-campus.

In the case of Windows C:\Windows\system32\drivers\etc\hosts, and in the case of Mac and Linux, you can check the same by appending the following to the /etc/hosts.

133.3.246.138 ***.kyoto-u.ac.jp

Enter the domain name of the web site which is going to be published in the part 【***.kyoto-u.ac.jp】.

Create the mailing address for the contact person of the WEB Hosting service

Create the forwarding address below as the mail address of the contact person of the WEB Hosting service and set up the mail address of the administrator(s) (several persons are possible) who will operate with WEB Hosting service for the forwarding address.

file name for forwarding settingpurposes
「.forward+webmaster」 address for contact webmaster@virtual domain
「.forward+」 for contact from the system

We will send all notifications, information, and communications to users of the WEB Hosting service through this contact person's mail address, so please create this address.
In addition, for ".forward +" file in the created file, please do not apply a spam filter for on campus mail.

 

Copyright © Institute for Information Management and Communication, Kyoto University, all rights reserved.