You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/web-servers/nginx/install-nginx-ubuntu/index.md
+15-21Lines changed: 15 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,42 +32,36 @@ Currently, the best way to install NGINX on Ubuntu 18.04 is to use the version i
32
32
33
33
### Add Basic Site
34
34
35
-
NGINX site-specific configuration files are kept in `/etc/nginx/conf.d/`. Generally you will want a separate file in this directory for each domain or subdomain you will be hosting.
35
+
NGINX site-specific configuration files are kept in `/etc/nginx/sites-available` and symlinked into `/etc/nginx/sites-enabled/`. Generally you will want to create a separate original file in the `sites-available`directory for each domain or subdomain you will be hosting, and then set up a symlink in the `sites-enabled` directory.
36
36
37
37
1. Copy the default configuration file. Replace `example.com` with your website's domain name or your Linode's public IP address.
3. Open your site's configuration file in a text editor. Replace `example.com` in the `server_name` directive with your site's domain name or IP address. If you already have content ready to serve (such as a WordPress installation or static files) replace the path in the `root` directive with the path to your site's content:
0 commit comments