2017-01-02 13 views
0

私は最近VirtualBoxをセットアップしました。私は自分のプロダクションに近い環境でwebdevをローカルで実行できます。このプロセスで、私はPHPを7.1にアップデートすることに加えて、環境間の移動性を高めるためにアプリケーションを更新し始めました。残念なことに、一見外見上、Apacheはjavascript/フォルダ内のファイルのいずれかを提供したくないようで、私はその理由を伝えられません。これは、TypescriptをNPM経由でグローバルにインストールした直後のように見えますが、どのように関係しているのか分かりません。 Apacheをどのようにデバッグするのか分かりません。Apacheは特定のフォルダからファイルを提供していません

サーバー上の唯一のバーチャルホストの設定は、このサイトに関連するものです。

<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> 

プロジェクトは、htaccessファイルを持っていますが、関連する何かを持っていないようです:

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 

ファイルが確実に存在していても、javascript/http://gamersplane.local/javascript/gamersplane.js)のファイルを入力すると「見つかりません」というエラーが返されます。これをデバッグする方法のアドバイスをいただければ幸いです。

答えて

0

私が探していたものを変更すると、javascript-commonというパッケージが何とかインストールされているか、typescriptをインストールしたときに有効になったことがわかりました。私はパッケージが必要かどうか分からないので、パッケージを無効にする前に見つけようとしています。

関連する問題