我在ubuntu上安装了apache服务器以在本地测试我的应用程序。
该服务器上托管的应用程序全部位于以下路径/var/www/html
的html文件夹中
当我编写localhost时,它将显示我的html文件中的文件夹的索引。
假设我的应用程序名为application01,要运行该应用程序,我必须将localhost/application01/src/en/index.html
写入地址栏。
我希望能够访问它而不必包括整个路径。
类似这样的东西:
我的apache2.config文件包含以下内容:
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
我试图将目录更改为/var/www/html/application01/src/
,但是没有用。
谢谢。