Creating a Website: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
== Example == | == Example == | ||
In this example, the site to be created is <code>example.com</code>. | In this example, the site to be created is <code>'''''example.com'''''</code>. | ||
This will create web sites at <code>www.example.com</code> and <code>example.com</code>, so you don't need to include the <code>www</code>. | This will create web sites at <code>www.'''''example.com'''''</code> and <code>'''''example.com'''''</code>, so you don't need to include the <code>www</code>. | ||
If you want to create a subdomain, then you can create that the same way, such as <code>subdomain.example.com</code>. | If you want to create a subdomain, then you can create that the same way, such as <code>subdomain.example.com</code>. | ||
# Log into your server running Sympl as the <code>sympl</code> user. | # Log into your server running Sympl as the <code>sympl</code> user. | ||
# <code>mkdir -p /srv/example.com/public/htdocs</code> | # <code>mkdir -p /srv/'''''example.com'''''/public/htdocs</code> | ||
Any files placed into the <code>htdocs</code> directory will automatically be served at <code>http://example.com</code>. | Any files placed into the <code>htdocs</code> directory will automatically be served at <code>http://'''''example.com'''''</code>. | ||
Within an hour, an individual configuration for the site will be automatically generated, however if you want to accelerate this process you can run <code>sudo sympl-web-configure --verbose</code>. | Within an hour, an individual configuration for the site will be automatically generated, however if you want to accelerate this process you can run <code>sudo sympl-web-configure --verbose</code>. | ||
Line 23: | Line 23: | ||
* [[Enabling HTTPS on a Website]] | * [[Enabling HTTPS on a Website]] | ||
* [[Web Configuration Options]] | * [[Web Configuration Options]] | ||
[[Category:Basic Administation]] |
Revision as of 15:10, 3 July 2019
The most basic action with Sympl is creating a website.
To do this, you only need to create a directory in the relevant location, then drop the files into it.
Example
In this example, the site to be created is example.com
.
This will create web sites at www.example.com
and example.com
, so you don't need to include the www
.
If you want to create a subdomain, then you can create that the same way, such as subdomain.example.com
.
- Log into your server running Sympl as the
sympl
user. mkdir -p /srv/example.com/public/htdocs
Any files placed into the htdocs
directory will automatically be served at http://example.com
.
Within an hour, an individual configuration for the site will be automatically generated, however if you want to accelerate this process you can run sudo sympl-web-configure --verbose
.
Remember, you may also need to configure DNS before the website is visible.