Apache不提供来自某个特定文件夹的文件

Apache不提供来自某个特定文件夹的文件,apache,.htaccess,Apache,.htaccess,我最近安装了一个Virtualbox,这样我就可以在本地使用与我的产品非常匹配的环境来进行webdev。在这个过程中,我开始更新我的应用程序,使其在不同环境之间更具移动性(同时将PHP更新为7.1)。不幸的是,看起来出乎意料的是,突然之间Apache似乎不想为javascript/文件夹中的任何文件提供服务,我也不知道为什么。这似乎是在我通过NPM全局安装Typescript之后发生的,但我不知道这有什么关系。我不知道如何调试Apache 服务器上唯一的vhost配置是与此站点相关的配置: &l

我最近安装了一个Virtualbox,这样我就可以在本地使用与我的产品非常匹配的环境来进行webdev。在这个过程中,我开始更新我的应用程序,使其在不同环境之间更具移动性(同时将PHP更新为7.1)。不幸的是,看起来出乎意料的是,突然之间Apache似乎不想为
javascript/
文件夹中的任何文件提供服务,我也不知道为什么。这似乎是在我通过NPM全局安装Typescript之后发生的,但我不知道这有什么关系。我不知道如何调试Apache

服务器上唯一的vhost配置是与此站点相关的配置:

<VirtualHost *:80>
        ServerName api.gamersplane.local
        DocumentRoot /var/www/Gamers_Plane/api
        <Directory /var/www/Gamers_Plane/api/>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/gamersplane/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel notice

        CustomLog ${APACHE_LOG_DIR}/gamersplane/access.log combined
</VirtualHost>

<VirtualHost *:80>
        ServerName gamersplane.local
        ServerAlias *.gamersplane.local
        DocumentRoot /var/www/Gamers_Plane
        <Directory /var/www/Gamers_Plane/>
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/gamersplane/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel notice

        CustomLog ${APACHE_LOG_DIR}/gamersplane/access.log combined
</VirtualHost>

点击
javascript/
中的任何文件,如
http://gamersplane.local/javascript/gamersplane.js
返回“未找到”错误,即使文件确实存在。任何关于如何调试的建议都将不胜感激。

改变我在谷歌上搜索的内容,我发现Apache
javascript common
软件包是以某种方式安装的,或者是在我安装typescript时启用的。我不知道这个包是否有必要,所以在我禁用这个包之前,我试图找出这个问题(试图搜索这个包的功能或用途是什么,结果是什么都没有)

ErrorDocument 401 errors/401
ErrorDocument 403 errors/403
ErrorDocument 404 errors/404

Options -Indexes +FollowSymLinks
RewriteEngine On

RewriteBase /

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_URI} !^(.*)/$
#RewriteRule ^(.*)$ /$1/ [L,R=301]

RewriteCond %{REQUEST_URI} !^/blog
RewriteCond %{REQUEST_URI} !^/phpthumb
RewriteCond %{REQUEST_URI} !^/backup
RewriteCond %{REQUEST_URI} !^/test\d?\.php$
RewriteCond %{REQUEST_URI} !^/phpinfo\.php$
RewriteCond %{REQUEST_URI} !^/test/
RewriteCond %{REQUEST_URI} !^/dbBackup\.php$
RewriteCond %{REQUEST_URI} !^/oneRunScripts/
RewriteCond %{REQUEST_URI} !^/angular/
RewriteRule !\.(css|jpg|js|gif|png|ico|eot|woff|woff2|ttff|svg|psd|mp3)$ dispatch.php