D
D
dura2282018-06-19 17:00:59
xampp
dura228, 2018-06-19 17:00:59

How to run laravel projects on xampp if port 80 is changed to 8012 on apache?

In httpd.conf I put

Listen 8012
ServerName localhost:8012

put in http-ssl.conf
Listen 8013
<VirtualHost _default_:8013>
ServerName localhost:8013

put in httpd-vhosts.conf
<VirtualHost *:8012> 
    DocumentRoot "C:\xampp\htdocs\blog\public"
    ServerName blog.local
</VirtualHost>

and put in hosts
127.0.0.1       localhost
::1             localhost
127.0.0.1		blog.local

but when running blog.local gives error 404
localhost:8012/blog displays the file structure of the project

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question