Currently I have a project where I separate the part of the backend and frontend, for the backend I use laravel and for the front I use AngularJS, this separated into two folders api (laravel) api_front (angularjs), both inside the project folder.
When I enter the browser: http: // ip_server I automatically load the part made with angularjs
since the configuration in the server I have it in this way
/etc/apache2/sites-available/000-default.conf
Virtual Host 1:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/project/api_front/
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
The problem I have is that in the project of angularJS I use WebServices of the part made with laravel. Example of webservice: http://ip_server/project/api/public/ws/collaborators
but when I consult that Web Service in the browser I get Not Found The requested URL / project / api / public was not found on this server.
Then I have created a second Virtual Host:
<VirtualHost *:88>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/project/api/
<Directory />
Options FollowSymLinks
AllowOverride none
</Directory>
<Directory /var/www/html/project/api/>
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_dir.c>
DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
</IfModule>
</VirtualHost>
But this new route is still not working. Please can you help me, thank you in advance.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2pnhaKQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire