在www wamp服务器中部署API symfony4

问题描述 投票:0回答:1

我在www(wamp)中部署我的休息Full api。当我要去我的网址:http://localhost/my-project/public/getData时,这是一个未找到的网址。去http://localhost/my-project/public时没有加载css和js

然后当我在php bin / console server中手动执行服务器时:运行,我将去:127.0.0.0.1 / getData。它工作正常。

这是我的httpd-vhosts.conf:

#
# Virtual Hosts
#

<VirtualHost *:80>
	ServerName localhost
	DocumentRoot c:/wamp64/www
	<Directory  "c:/wamp64/www/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>

</VirtualHost>

问题是什么 ?谢谢

api wamp symfony4 fosrestbundle
1个回答
0
投票

这是一个.htaccess缺失现在,一切正常,谢谢

© www.soinside.com 2019 - 2024. All rights reserved.