Web Portal
The Web Portal page provides a centralized platform to manage the portals of your web services. This article will guide you through managing the default web portal, personal websites, and portals.
Default Portal
Web Station automatically generates a web portal with default URLs upon package installation.
To manage the default web portal:
- Go to the Web Service page.
- Under the Default Service section, select Default Service and click Edit.
- Configure the following settings depending on your needs:
- HTTP back-end server: Select a type of web server from the drop-down menu.
- PHP: Select a PHP profile from the drop-down menu. You can create customized PHP profiles at Script Language Settings > PHP.
- Click Apply.
- The URLs of the default web portal are in the following formats:
- http://IP address of your NAS:80
- http://domain name of your NAS:80
- https://IP address of your NAS:443
- https://domain name of your NAS:443
Note:
- Web Station uses the http group to execute tasks. By default, the http group has read permission to the web and web_packages shared folders. To ensure that Web Station works properly, grant the http group to access website-related folders or files. For instance, if you wish to make the sample.htm file in the web shared folder accessible for Web Station, you have to ensure that the http group has read/write permission to the web shared folder and the sample.htm file.
- The homepage file should be named index.htm, index.html, or index.php.
- When you use the PHP mail() function, the system will automatically retrieve and use the SMTP server information at Control Panel > Notification > Email. Make sure you have enabled email notifications and entered the correct SMTP server information.
- Web Station comes with two shared folders by default:
- web_packages: Files of installed third-party packages (e.g., phpMyAdmin) are stored in this shared folder.
- web: Files for hosting your websites can be stored in this shared folder.
- The actual path of the shared folder web is /volume1/web. Some applications require users to set the path in the configuration file.
- The names blog, photo, photosrc, and webdefault are reserved folder names and cannot be used by Web Station. Do not create folders with these names under the web shared folder.
- To customize the error page, do either of the following:
- Go to Error Page Settings > Default Profile > Default error page profile and refer to Error Page Settings for the instructions.
- Create a file named missing.html, missing.htm, or missing.php, and place it under the web shared folder on your Synology NAS.
To enable a personal website:
Web Station allows local users, domain users, and LDAP users to create their personal websites.
Before you start:
- Enable User Home. This option can be found in the following paths:
- For local users: Control Panel > User & Group > Advanced
- For domain users: Control Panel > Domain/LDAP > Domain Users
- For LDAP users: Control Panel > Domain/LDAP > LDAP Users
- Install and enable at least one version of Apache HTTP Server. These packages can be found at Package Center.
- Go to the Web Service page.
- Under the Default Service section, select Default Service and click Edit.
- Tick the Enable personal website checkbox, and a folder named www will be created in each user's home directory accordingly.
- Configure the following settings depending on your needs and click Save:
- HTTP back-end server: Select a type of web server from the drop-down menu.
- PHP: Select a PHP profile from the drop-down menu. You can create customized PHP profiles at Script Language Settings > PHP.
- Upload website-related files to the www folder.
- Make sure adequate access permission for the uploaded files has been granted to specified users or groups.
- After the steps above are complete, each user will have a unique website address as follows:
- Local users: "IP address of your NAS/~username/" or "hostname of your NAS/~username/". For example:
- 192.168.1.1/~ken/
- kenstation/~ken/
- Domain users: "IP address of your NAS/~domain name%5cusername/" or "hostname of your NAS/~domain name%5cusername/". For example:
- 192.168.1.1/~synology.local%5cken/
- kenstation/~synology.local%5cken/
- LDAP users: "IP address of your NAS/~username@domain name/" or "hostname of your NAS/~username@domain name/". For example:
- 192.168.1.1/~ken@synology.local/
- kenstation/~ken@synology.local/
- Local users: "IP address of your NAS/~username/" or "hostname of your NAS/~username/". For example:
Customized Portal
To set up a web service portal:
Web Station allows you to create customized portals for third-party web service packages, such as phpMyAdmin, WordPress, and MediaWiki.
- Go to the Web Portal page and click Create.
- Select Web service portal.
- Select a service.
- Select a portal type:
- Name-based: To create a name-based URL (e.g., "http://synotest.com:80"), enter the FQDN (Fully Qualified Domain Name) of your Synology NAS in the Hostname field, and select at least one port type for the URL (i.e., default ports 80 and 443, or customized ports HTTP and HTTPS).
- Port-based: To create a port-based URL (e.g., "https://210.61.203.200:443"), select at least one port type (HTTP or HTTPS) and enter the port number for the URL.
- Alias-based: You can assign alternative URLs called alias to third-party web service packages.
- Tick the HSTS checkbox in the HTTPS settings field if you wish to force web browsers to visit your package server through HTTPS connections.
- Select a profile from the Access control profile drop-down menu. You can create access control profiles at Control Panel > Login Portal > Advanced.
- Select a profile from the Error page profile drop-down menu. You can create error page profiles at Error Page Settings.
- Click Create to complete the settings. A default link will be generated on the portal list on the Web Portal page.
To set up an alternative portal of the default server:
Web Station allows you to create customized hostnames and ports for alternative portals of your default web server.
- Go to the Web Portal page and click Create.
- Select Alternative portal of default server.
- Select a portal type:
- Name-based: To create a name-based URL (e.g., "http://synotest.com:80"), enter the FQDN (Fully Qualified Domain Name) of your Synology NAS in the Hostname field, and select at least one port type for the URL (i.e., default ports 80 and 443, or customized ports HTTP and HTTPS).
- Port-based: To create a port-based URL (e.g., "https://210.61.203.200:443"), select at least one port type (HTTP or HTTPS) and enter the port number for the URL.
- Tick the HSTS checkbox in the HTTPS settings field if you wish to force web browsers to visit your virtual host through HTTPS connections.
- Click Create to complete the settings. A default link will be generated on the portal list on the Web Portal page.
Note:
- Web Station uses the http group to execute tasks for better flexibility and security. To ensure that Web Station works properly, grant the http group to access website-related folders or files. For instance, if you wish to make the vhost1 folder accessible for Web Station, you have to ensure that the http group has read/write permission for the vhost1 folder.
- To ensure functionalities of installed third-party web service packages, the http group's permission to the web_packages shared folder should be set as read-only.
- The main purpose of configuring file access permission is to ensure that Web Station functions properly. Do not store sensitive information in the following folders because they are used for storing website-related files:
- The web shared folder
- The web_packages shared folder
- Document roots of virtual hosts
- The default links on the portal list follow the rules below:
- When both the default (80 and 443) and customized ports are enabled, the default link ends with port 443 (HTTPS).
- When only the customized ports are enabled, the default link ends with the HTTPS customized port.