The sites-* folders are managed by nginx_ensite
and nginx_dissite
. For Apache httpd users who find this with a search, the equivalents is a2ensite
/a2dissite
.
The sites-available
folder is for storing all of your vhost configurations, whether or not they’re currently enabled.
The sites-enabled
folder contains symlinks to files in the sites-available folder. This allows you to selectively disable vhosts by removing the symlink.
conf.d
does the job, but you have to move something out of the folder, delete it, or make changes to it when you need to disable something. The sites-* folder abstraction makes things a little more organized and allows you to manage them with separate support scripts.
(unless you’re like me, and one of many debian admins who just managed the symlinks directly, not knowing about the scripts…)
Related Posts:
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- “sed” command in bash
- WSL – GEDIT Unable to init server: Could not connect: Connection refused
- How to open some ports on Ubuntu?
- Uncompress tar.gz file
- “Unable to find remote helper for ‘https'” during git clone
- What is the difference between /etc/rc.local and ~/.bashrc?
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- Telnet [Unable to connect to remote host: Connection refused]
- wget returns “Unable to establish SSL connection”
- Curl : connection refused
- How to install Android SDK on Ubuntu?
- How do I install chkconfig on Ubuntu?
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- List all mounts in Linux
- How to use sed to extract substring
- Bash export command
- How to edit gitignore file
- Adding a new entry to the PATH variable in ZSH
- how to search for a directory from the terminal in ubuntu
- Hosting multiple WordPress sites on single server – best practices?
- What permissions should my website files/folders have on a Linux webserver?
- What are the functional differences between .profile .bash_profile and .bashrc
- How to bind MySQL server to more than one IP address?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- How to list Apache enabled modules?
- Is it possible to make Nginx listen to different ports?
- How to force nginx to resolve DNS (of a dynamic hostname) everytime when doing proxy_pass?
- GPG does not have enough entropy
- df says disk is full, but it is not
- Why don’t EC2 ubuntu images have swap?
- Heartbleed: how to reliably and portably check the OpenSSL version?
- Is there a proper way to clear logs?
- What is the debian-sys-maint MySQL user (and more)?
- How should an IT department choose a standard Linux distribution?
- Command line program to test DHCP service
- How do I deal with a filename that starts with the hyphen (-) character?
- Chmod 777 to a folder and all contents [duplicate]
- Bash: No such file or directory?
- Confused about stdin, stdout and stderr?
- What’s a .sh file?
- Amazon Linux: apt-get: command not found
- How to set the environmental variable LD_LIBRARY_PATH in linux
- What’s a .sh file?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How can I symlink a file in Linux? [closed]
- How to fix ‘sudo: no tty present and no askpass program specified’ error?
- Kill detached screen session [closed]
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How do I grep recursively?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- How do I grep recursively?
- Why do you need to put #!/bin/bash at the beginning of a script file?
- How to get the url of the current svn repo?
- What does pss mean in /proc/pid/smaps
- What is a clearfix?
- How do I find all files containing specific text on Linux?
- How to unmount a busy device
- How to unmount a busy device
- performing HTTP requests with cURL (using PROXY)
- Where can I find php.ini?
- gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
- No space left on device
- How do I grep recursively?
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How to perform grep operation on all files in a directory?
- Amazon Linux: apt-get: command not found
- How to install grub after installing Windows 10
- Linux: ‘Username’ is not in the sudoers file. This incident will be reported
- how to find libstdc++.so.6: that contain GLIBCXX_3.4.19 for RHEL 6?
- How to extract C source code from .so file?
- Pass a password to ssh in pure bash
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- How to substitute shell variables in complex text files
- -bash: syntax error near unexpected token `newline’ for display command
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- SSH using python script
- Curl command for https ( SSL )
- How can I exclude directories from grep -R?
- How to exclude a directory in find . command
- How can I exclude directories from grep -R?
- Changing the resolution of a VNC session in linux
- gcc: error: unrecognized command line option
- How to exclude a directory in find . command
- How can I find all *.js file in directory recursively in Linux?
- mysql_config not found when installing mysqldb python interface
- Linux error while loading shared libraries: cannot open shared object file: No such file or directory
- How to set proxy for wget?
- Shell command to tar directory excluding certain files/folders
- Argument list too long error for rm, cp, mv commands
- QEMU: /bin/sh: can’t access tty; job control turned off
- How to change permissions for a folder and its subfolders/files in one step
- Difference between using “chmod a+x” and “chmod 755”