Why is 000-default.conf a symlink? lrwxrwxrwx 1 cole cole 35 Mar 3 10:36 000-default.conf -> ../sites-available/000-default.conf
I am trying to use notepad via WinSCP to edit and save my changes to 000-default.conf but I get an error when I save my charges. How can I accomplish this? I am handicap and have to do cut/paste then save and cannot use ssh to nano, etc.
Apache allows for multiple “sites” to be defined with multiple configuration files. These are all stored in
/etc/apache2/sites-available
and can be enabled/disabled at any time. When you enable a site witha2ensite
, a symlink is created between/etc/apache2/sites-enabled
and the source file. When you disable a site witha2dissite
the link is removed and the source configuration file remains. You can see the same pattern with modules, asa2enmod
creates a symbolic link inmods-enabled
anda2dismod
removes the link.One note: be sure to reload or restart Apache after modifying your configuration files, otherwise any changes you make will not be reflected.
Or