HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /volume1/@appstore/WebStation/ui/help/ger/application_webserv_http.html
<!DOCTYPE html>
<html class="img-no-display">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>Web Services</title>


<link href="../../../../help/help.css" type="text/css" rel="stylesheet"  />
<link href="../../../../help/scrollbar/flexcroll.css" type="text/css" rel="stylesheet"  />
<script type="text/javascript" src="../../../../help/scrollbar/flexcroll.js"></script>
<script type="text/javascript" src="../../../../help/scrollbar/initFlexcroll.js"></script>
</head>


<h2>Web Applications</h2>
<p>With the Web Station feature and PHP support, you can easily host a website on your Synology NAS and create dynamic websites for your business or hobby. In addition, Package Center provides a variety of 3rd party packages such as Content Management, Customer Relationship Management & e-Commerce system. A default shared folder called <strong>web</strong> will be created to store the files 
  for your website.</p>

<div class="section">
<h4>Note:</h4>
<ul>
  <li>For better flexibility and security,  Web Station uses the <strong>http</strong> user group to execute tasks. Therefore, to control the access permissions for your web pages, please change the <strong>http</strong> group's access permissions for each corresponding folder and file. For example, if you want to make <strong>sample.htm</strong> file in the <strong>web</strong> shared folder accessible via Web Station, you'll need to make sure the <strong>http</strong> group has proper read/write permissions for the <strong>web</strong> shared folder as well as the <strong>sample.htm</strong> file.</li>
  <li>The home page file should be named <strong>index.htm</strong>, <strong>index.html</strong>, or <strong>index.php</strong>.</li>

<li>When you use the PHP mail() function, the system will automatically retrieve and use the SMTP server information on the <strong>Notification</strong> page. Make sure you have enabled email notifications and entered the correct SMTP server information.</li>

<li>The real path of the shared folder <b>web</b> is <b>/volume1/web</b>. Some applications require the user to set the path in the configuration file.</li>


<li>The names <strong>blog</strong>, <strong>photo</strong>, <strong>photosrc</strong>, and <strong>webdefault</strong> are reserved folder names. These names cannot be used by Web Station, so please do not create folders with these names under the <b>web</b> shared folder.</li>

<li>You can customize the error page by creating a <b>missing.html</b> file, a <b>missing.htm</b> file, or a <b>missing.php</b> file. First enable Web Station. Then place the <b>missing.html</b>, <b>missing.htm</b>, or the <b>missing.php</b> file under the <b>web</b> shared folder on the server. When users link to a page which does not exist, they will view this customized error page.</li>

<li>Maximum number of active HTTP connections: 256</li>

<li>Maximum number of virtual hosts: 30</li>
</ul>
</div>

<h3>Enable Virtual Host to Host Websites</h3>
<p>You can host multiple websites on a single server with virtual host 
feature. To get started, your need to register a couple of domain names and 
configure virtual hosting by following the steps below.</p>
<h4>To enable Virtual Host:</h4>
<ol>
<li>Click <b>Virtual Host</b>.</li>
<li>Click <b>Create</b>.</li>
<li>Enter a name for the sub-folder of the <b>web</b> shared folder, which will store the website 
files.</li>
<li>Enter a hostname for the website.</li>
<li>Enter a port for the website.</li>
<li>
Click <b>OK</b>.
</li>
</ol>
<h3>Enable Personal Website</h3>
The personal website feature is a convenient way to allow local users, domain users and LDAP users to create their own personal websites.
<h4>For local users</h4><p>Each local user will have a unique website address <strong>server-IP/~username</strong> or <strong>server-name/~username</strong>. For example:</p>
<ol>
<li>192.168.1.1/~ken</li>
<li>SynologyNAS/~ken</li>
</ol>
<h4 class="disable-eds14">For domain users</h4>
<p class="disable-eds14">Each domain user will have a unique website address <strong>server-IP/~domainname%5cusername</strong> or <strong>server-name/~domainname%5cusername</strong>. For example:</p>
<ol class="disable-eds14">
<li>192.168.1.1/~testdomain<b>%5c</b>ken</li>
<li>SynologyNAS/~testdomain<b>%5c</b>ken</li>
</ol>

<h4 class="disable-eds14">For LDAP users</h4>
<p class="disable-eds14">Each LDAP user will have a unique website address <strong>server-IP/~username@domainname</strong> or <strong>server-name/~username@domainname</strong>. For example:
<ol class="disable-eds14">
<li>192.168.1.1/~ken<b>@</b>testdomain</li>
<li>SynologyNAS/~ken<b>@</b>testdomain</li>
</ol>

</p><div class="section disable-eds14">
<h4>Note:</h4>
<p>Before enabling this feature, please make sure <strong>user homes</strong> are enabled. For local users, go to <b>Control Panel</b> > <b>User</b> > <b>Advanced</b>; for domain users, go to <b>Control Panel</b> > <b>Directory Service</b> > <b>Domain Users</b> > <b>User Home</b>; for LDAP users, go to <b>Control Panel</b> > <b>Directory Service</b> > <b>LDAP Users</b> > <b>User Home</b>.</p>
</div>

<div class="section enable-eds14">
<h4>Note:</h4>
<p>Before enabling this feature, please make sure <strong>user homes</strong> are enabled. For local users, go to <b>Control Panel</b> > <b>User</b> > <b>Advanced</b>.</p>
</div>


<h4>To create a personal website:</h4>
<ol>
<li>If you have checked <strong>Enable personal website</strong>, a folder <strong>www</strong> will be automatically created in the user's home directory.</li>
<li>The user can now upload the website-related files (e.g., webpages and sound files) into the <strong>www</strong> folder.</li>
<li>Make sure the user has proper access permissions to the uploaded files.</li>
</ol>


<h4>To customize the error page:</h4>
<ol>
<li>Save the error page as <b>missing.html</b>, <b>missing.htm</b>, or <b>missing.php</b>.</li>
<li>Upload the file to the <strong>www</strong>  folder.</li>
</ol>
<p>When users link to a page that does not  exist in the local user’s website, the customized error page will be displayed.<strong></strong></p>
<h4>Support  and limitations:</h4>
<p>Local users are only allowed to access data under the following:</p>
<ul>
<li>Their own home</li>
<li>/var/tmp</li>
<li>/tmp</li>
<li>/volumeX/@tmp</li>
</ul>


</html>