Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何为phabricator配置apache_Apache_Httpd.conf_Phabricator - Fatal编程技术网

如何为phabricator配置apache

如何为phabricator配置apache,apache,httpd.conf,phabricator,Apache,Httpd.conf,Phabricator,我的操作系统是Ubuntu 13.10,我使用apt get install安装了Apache。在目录/etc/apache2中,没有配置Apache时使用的httpd.conf 请帮助运行 updatedb 然后 您可以阅读此文档,其中说明了不同版本和发行版的文件在哪里 还要记住,如果您有许多服务器,您将需要配置apache2/sites availables/default.conf中的服务器配置,如果您使用默认服务器,请更改它;如果没有,则基于default.conf创建一个新的 如果您

我的操作系统是Ubuntu 13.10,我使用apt get install安装了Apache。在目录
/etc/apache2
中,没有配置Apache时使用的
httpd.conf

请帮助运行

updatedb
然后


您可以阅读此文档,其中说明了不同版本和发行版的文件在哪里

还要记住,如果您有许多服务器,您将需要配置apache2/sites availables/default.conf中的服务器配置,如果您使用默认服务器,请更改它;如果没有,则基于default.conf创建一个新的

如果您介绍自己使用ApacheServer,这可能会很好,例如,read

1)转到/etc/apache2/sites available。删除所有*.conf文件

2) 在此处创建包含以下内容的phabricator.conf文件:

<VirtualHost *>
    # Change this to the domain which points to your host.
    ServerName yourservername

    # Change this to the path where you put 'phabricator' when you checked it
    # out from GitHub when following the Installation Guide.
    #
    # Make sure you include "/webroot" at the end!
    DocumentRoot /path/to/phabricator/webroot

    RewriteEngine on
    RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
    RewriteRule ^/favicon.ico   -                       [L,QSA]
    RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

    <Directory "/path/to/phabricator/webroot">
            Require all granted
    </Directory>

    # 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
</VirtualHost>

请注意,将文件移动到另一个目录与删除文件一样有效
<VirtualHost *>
    # Change this to the domain which points to your host.
    ServerName yourservername

    # Change this to the path where you put 'phabricator' when you checked it
    # out from GitHub when following the Installation Guide.
    #
    # Make sure you include "/webroot" at the end!
    DocumentRoot /path/to/phabricator/webroot

    RewriteEngine on
    RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
    RewriteRule ^/favicon.ico   -                       [L,QSA]
    RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

    <Directory "/path/to/phabricator/webroot">
            Require all granted
    </Directory>

    # 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
</VirtualHost>
sudo a2ensite phabricator
sudo service apache2 restart