I have Linux mint 19 and I want to create virtual host on address www.bill.local. I created new domain in localhost/ampps.
/etc/hosts file contains:
Quote 127.0.0.1 localhost
127.0.1.1 dell-pc
127.0.0.1 www.bill.local
/usr/local/ampps/apache/conf/extra/httpd-vhosts.conf file contains:
Quote #DO NOT EDIT, CREATED BY AMPPS
#### www.bill.local VirtualHost ####
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
ServerName www.bill.local
ServerAlias www.bill.local
ScriptAlias /cgi-bin/ "/usr/local/ampps/www/www.bill.local/backend/web/cgi-bin/"
DocumentRoot "/usr/local/ampps/www/www.bill.local/backend/web"
ErrorLog "/usr/local/ampps/apache/logs/www.bill.local.err"
CustomLog "/usr/local/ampps/apache/logs/www.bill.local.log" combined
####################################
Restarted apache, but nothing really works. When I enter www.bill.local in browser I get error "We can’t connect to the server at www.bill.local". Tested with "VirtualHost www.bill.local:80" and "VirtualHost *:80", but still no result. What I am missing?
|