apache2 - Virtual host error duplicate - Ask Ubuntu
i'm running following command:
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/projecttest.com
and getting following error:
cp: cannot stat ‘/etc/apache2/sites-available/default’: no such file or directory
what can fix this?
check here instead... /etc/apache2/sites-available/000-default.conf
if it's still not available, can recreate file default contents.
<virtualhost *:80> # servername directive sets request scheme, hostname , port # server uses identify itself. used when creating # redirection urls. in context of virtual hosts, servername # specifies hostname must appear in request's host: header # match virtual host. default virtual host (this file) # value not decisive used last resort host regardless. # however, must set further virtual host explicitly. #servername www.example.com serveradmin webmaster@localhost documentroot /var/www/html # available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # possible configure loglevel particular # modules, e.g. #loglevel info ssl:warn errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/access.log combined # configuration files conf-available/, # enabled or disabled @ global level, possible # include line 1 particular virtual host. example # following line enables cgi configuration host # after has been globally disabled "a2disconf". #include conf-available/serve-cgi-bin.conf </virtualhost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Comments
Post a Comment