php - Server name on virtual host not working -


Please help me if I am working on Zend Framework 2 project, name of project in the Wamp / www folder Pizza I tried to work with the host host on host file, httpd.conf and httpd-vhosts.conf with this project URL: pizza.local /

Instead: localhost: 8080 / pizza / Public /

But some do not have ght with my configuration Note that I use Localhost Su-Am: 8080 local host.

Please help me find out what I did wrong. Here are my files:

httpd.conf:

  Include # virtual host conf / extra / httpd-vhosts.conf  

Httpd -vhosts.conf:

  & lt; VirtualHost *: 8080 & gt; ServerAdmin webmaster@localhost.com DocumentRoot "c: / wamp / www" ServerName Localhost ServerAllus www.localhost Error log "log / localhost-error.log" custom log "log / localhost-access .log" normal < / VirtualHost & gt; & Lt; VirtualHost *: 80 & gt; ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "c: /Apache24/docs/dummy-host2.example.com" servername dummy-host 2.example.com error log "log / dummy-host2.example.com-error .log "custom log" log / dummy-host 2. example.com-access.log "General" / VirtualHost & gt; & Lt; VirtualHost *: 8080 & gt; DocumentRoot "c: / wamp / www / pizza / public" server name pizza Local & lt; The directory "c: / wamp / www / pizza / public" & gt; DirectoryIndex index.php AllowOverride Allow all orders, Deny all & lt; / Directory & gt; & Lt; / VirtualHost & gt;  

Host file:

  # For example: ## 102.54.94.97 rhino.acme.com # Source Server # 38.25.63.10 x.acme Com # x Client Host # Local Host Name resolution is handled only within DNS. # 127.0.0.1 localhost # :: 1 localhost 127.0.0.1 localhost 127.0.0.1 pizza. Local 127.0.0.1 localhost  

As you are using this VHOST on Port 8080 Are there. You have to specify in the URL below.

  http: //pizza.local: 8080/  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -