Here is the configuration for those who are trying to fulfill the original goal (wildcards pointing to the same code base - do not install anything, dev environment, i.e. XAMPP)
hosts file (add entry)
file: / etc / hosts (non-windows)
127.0.0.1 example.local
Httpd.conf configuration (enable vhosts)
file: /XAMPP/etc/httpd.conf
Httpd-vhosts.conf configuration
file: XAMPP / etc / extra / httpd-vhosts.conf
<VirtualHost *:80> ServerAdmin admin@example.local DocumentRoot "/path_to_XAMPP/htdocs" ServerName example.local ServerAlias *.example.local # SetEnv APP_ENVIRONMENT development # ErrorLog "logs/example.local-error_log" # CustomLog "logs/example.local-access_log" common </VirtualHost>
restart apache
create pac file:
save as whatever.pac wherever you want, and then upload the file to your browser> proxy> autoconfiguration settings (reload if you change this)
function FindProxyForURL(url, host) { if (shExpMatch(host, "*example.local")) { return "PROXY example.local"; } return "DIRECT"; }
Daniel Jordi Aug 19 '14 at 19:51 2014-08-19 19:51
source share