Federico Nastasi Federico Nastasi - 1 year ago 97
Apache Configuration Question

Problems with virtual host

I'm using Xampp, and I'm developing a web app.

in httpd-vhosts.conf :

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/ProgettoTimelinegit/api"
ServerName timeline.dev
<Directory "C:/xampp/htdocs/ProgettoTimelinegit/web/app/index.html">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride Authconfig FileInfo
Require all granted

and in etc/hosts timeline.dev

On my browser I write timeline.dev it reaches the html but it's not rendered well because the path are not ok.
My intention would be that when I write timeline.dev it goes right to

in /api/index.php (that calls the routes) there is the backend and in /web the frontend .
Why if I write 'timeline.dev/index.php/route' in the http request,it appends like this ?


Answer Source

change DocumentRoot "C:/xampp/htdocs/ProgettoTimelinegit/api" to DocumentRoot "C:/xampp/htdocs/ProgettoTimelinegit/app"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download