apache - 在 apache 网络服务器中运行 symfony 应用程序
问题描述
我需要在 apache 服务器上运行 symfony 应用程序。我使用以下代码创建了文件 nameofmyapplication.localhost.conf:
<Directory />
Options FollowSymLinks
AllowOverride All
Require all granted
Allow from All
</ Directory>
<Directory / opt / lampp / htdocs / docsandparcels / public />
Options -Indexes + FollowSymLinks
AllowOverride All
Require all granted
Allow from All
</ Directory>
<VirtualHost *: 80>
ServerName www.docsandparcels.localhost
ServerAlias docsandparcels.localhost
ServerAdmin webmaster@yourdomain1.com
DocumentRoot / opt / lampp / htdocs / docsandparcels / public /
ErrorLog $ {APACHE_LOG_DIR} /docsandparcels.localhost-error.log
CustomLog $ {APACHE_LOG_DIR} /docsandparcels.localhost-access.log combined
</ VirtualHost>
错误是当我尝试使用以下 url 登录时找不到 404 对象:docsandparcels.localhost / public / 我该如何解决这个问题?
解决方案
推荐阅读
- node.js - 节点:将远程数据库连接到节点服务器
- ios - 在多个节点上应用 SceneKit 着色器修改器
- javascript - 动态创建表以及如何插入数据
- mysql - MySQL 从两个表中选择,其中用户 ID 在第一行,项目在第二行
- html - HTML:使用引导程序添加粘性页脚响应
- mysql - 获取用户与纬度的距离和经度
- postgresql - 多个存储库上的 JOOQ @Transactional
- apache-flex - Flex AIR 编译错误访问未定义属性
- ssms - 如何从 SQL Management Studio 卸载并完全重置所有数据?
- scala - [scala]错误:值_2不是字符串的成员