2016-10-19 5 views
0

Open Project、Apache、および/ var/www/htmlにインストールされている他のアプリケーションに問題があります。Openproject、apache、/ var/www/html

私は/ var/www/htmlやindex.htmlのいずれかのアプリケーションに接続しようとすると、Openprojectのconfファイルのように見えるので、動作しません '別のフォルダ(私は推測するopenprojectフォルダ) 。ここで

は、ここに私のOpenproject.conf

Include /etc/openproject/addons/apache2/includes/server/*.conf 

<VirtualHost *:80> 
    ServerName tools.mydomain.com 
    DocumentRoot /opt/openproject/public 

    ProxyRequests off 

    Include /etc/openproject/addons/apache2/includes/vhost/*.conf 

    # Can't use Location block since it would overshadow all the other proxypass directives on CentOS 
    ProxyPass /openproject/ http://127.0.0.1:6000/openproject/ retry=0 
    ProxyPassReverse /openproject/ http://127.0.0.1:6000/openproject/ 
</VirtualHost> 

である私の000-は、default.confの内容です:私はより他の何かにopenproject.confのServerNameを変更すると

<VirtualHost *:80> 
     # The ServerName directive sets the request scheme, hostname and port that 
     # the server uses to identify itself. This is used when creating 
     # redirection URLs. In the context of virtual hosts, the ServerName 
     # specifies what hostname must appear in the request's Host: header to 
     # match this virtual host. For the default virtual host (this file) this 
     # value is not decisive as it is used as a last resort host regardless. 
     # However, you must set it for any further virtual host explicitly. 
     #ServerName www.example.com 

     ServerAdmin [email protected] 
     DocumentRoot /var/www/html 

     # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, 
     # error, crit, alert, emerg. 
     # It is also possible to configure the loglevel for particular 
     # modules, e.g. 
     #LogLevel info ssl:warn 

     ErrorLog ${APACHE_LOG_DIR}/error.log 
     CustomLog ${APACHE_LOG_DIR}/access.log combined 

     # For most configuration files from conf-available/, which are 
     # enabled or disabled at a global level, it is possible to 
     # include a line for only one particular virtual host. For example the 
     # following line enables the CGI configuration for this host only 
     # after it has been globally disabled with "a2disconf". 
     #Include conf-available/serve-cgi-bin.conf 
</VirtualHost> 

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet 

tools.mydomain.com私は/ var/www/htmlにあるアプリケーションにアクセスできますが、これがどのように動作するのかわかりません...このような仕組みを理解できません。

助けてくれてありがとう。

答えて

0

ほとんどのアプリケーションでは非常に一般的なので、ポート80には注意してください。まず、Apacheをリロードしようとします。

sudo service apache2 reload 

次に、このエラーが発生した場合の出力を参照してください。

sudo journalctl -xe 

すべてがOKであれば、再びサイト

sudo a2ensite openproject 

リロードのapacheを登録し、/ etcに追加/ホストがhttp://tools.mydomain.com:[port]に入力しよう、そして、

127.0.1.1 tools.mydomain.com 

次の行を提出

+0

私の最初のメッセージではっきりとわかりません。私は**私の設定ファイルでopenprojectにアクセスできます**。しかし、私は '/ var/www/html /'の他のアプリにアクセスすることはできません。 – Tom

+0

いいえ、それは他のドメインを作成する必要があるからです – maxwellnewage