im trying to set up local subdomain for my new site, i can w/o problem access url: serverxyz from any pc in my network, but when it comes to subdomains it is only possiable from PC that host subdomains, ig sub1.localhost, sub2.localhost. I want to give pc's in my local network to acess my subdomains, i use WAMP.
my hosts :
localhost maintence localhost kadry.maintence
DocumentRoot "C:\wamp\www" <Directory "C:\wamp\www"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # # Require all granted # onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from all </Directory>
<VirtualHost *:80> ServerName maintence ServerAlias maintence DocumentRoot "C:\wamp\www" ErrorLog "logs\errors.log" <directory "C:\wamp\www"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from all </directory> </VirtualHost> <VirtualHost *:80> ServerName maintence ServerAlias *.maintence VirtualDocumentRoot "C:\wamp\www\subdomains\%1" ErrorLog "logs\errors.log" <directory "C:\wamp\www\subdomains\%1"> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from all </directory> </VirtualHost>
i think my WAMP server doesn't see
httpd-vhosts.conf but maybe there is another my mistake any help would be great.