Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.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
Path Bitnami:如何在Apache2中配置GitLab 5.0应用程序,使其不具有相对根目录?_Path_Gitlab_Apache2_Relative Path_Bitnami - Fatal编程技术网

Path Bitnami:如何在Apache2中配置GitLab 5.0应用程序,使其不具有相对根目录?

Path Bitnami:如何在Apache2中配置GitLab 5.0应用程序,使其不具有相对根目录?,path,gitlab,apache2,relative-path,bitnami,Path,Gitlab,Apache2,Relative Path,Bitnami,(或者如何使GitLab应用程序成为Apache2 HTTP服务器上的根应用程序。) 我以前没有使用过Apache2,但我使用了预装的服务器 由于应用程序根是相对的,所以我遇到了一些问题。 修复方法是不使用相对根目录,而是在Apache2HTTP服务器上以根目录运行GitLab应用程序 我已使用以下方法找到配置文件的位置: 1) /opt/bitnami/apache2/conf/httpd.conf不存在 2) GitLab应用程序的Apache2配置:GitLab.conf 请帮助: 如

(或者如何使GitLab应用程序成为Apache2 HTTP服务器上的根应用程序。)

我以前没有使用过Apache2,但我使用了预装的服务器

由于应用程序根是相对的,所以我遇到了一些问题。

修复方法是不使用相对根目录,而是在Apache2HTTP服务器上以根目录运行GitLab应用程序

我已使用以下方法找到配置文件的位置:

1)
/opt/bitnami/apache2/conf/httpd.conf
不存在

2) GitLab应用程序的Apache2配置:
GitLab.conf

请帮助:

如何在Apache2中配置GitLab 5.0应用程序,使其不具有相对根?

更新:这个问题仍然没有解决,我自己的答案没有帮助。

2) 方式

如果要将默认URL从更改为
http://your_domain/your_application
http://your_domain
,您应该 在应用程序配置文件中添加“DocumentRoot”条目。编辑 /opt/bitnami/apps/your_application/conf/your_application.conf文件 添加此行并注释“Alias”条目。你可以使用 “nano”编辑器:

$sudo nano/opt/bitnami/apps/your_application/conf/your_application.conf

您的_application.conf文件内容:

某些应用程序还需要更改其配置文件或 在数据库中

/opt/bitnmai/apps/gitlab/gitlab.conf
更改后:

DocumentRoot /opt/bitnami/apps/gitlab/htdocs/public

<Directory "/opt/bitnami/apps/gitlab/htdocs/public">
   Options -MultiViews
   allow from all
</Directory>

PassengerDefaultUser git
PassengerDefaultGroup git

PassengerPreStart htttp://127.0.0.1:80/
DocumentRoot/opt/bitnami/apps/gitlab/htdocs/public
选项-多视图
通融
PassengerDefaultUser git
PassengerDefaultGroup git
乘客公寓htttp://127.0.0.1:80/

另请参见

2) 方式

如果要将默认URL从更改为
http://your_domain/your_application
http://your_domain
,您应该 在应用程序配置文件中添加“DocumentRoot”条目。编辑 /opt/bitnami/apps/your_application/conf/your_application.conf文件 添加此行并注释“Alias”条目。你可以使用 “nano”编辑器:

$sudo nano/opt/bitnami/apps/your_application/conf/your_application.conf

您的_application.conf文件内容:

某些应用程序还需要更改其配置文件或 在数据库中

/opt/bitnmai/apps/gitlab/gitlab.conf
更改后:

DocumentRoot /opt/bitnami/apps/gitlab/htdocs/public

<Directory "/opt/bitnami/apps/gitlab/htdocs/public">
   Options -MultiViews
   allow from all
</Directory>

PassengerDefaultUser git
PassengerDefaultGroup git

PassengerPreStart htttp://127.0.0.1:80/
DocumentRoot/opt/bitnami/apps/gitlab/htdocs/public
选项-多视图
通融
PassengerDefaultUser git
PassengerDefaultGroup git
乘客公寓htttp://127.0.0.1:80/


另请参见

是否再次预编译了资产?为此,您应该运行:

$ cd /opt/bitnami/apps/gitlab/htdocs
$ bundle exec bin/rake assets:precompile RAILS_RELATIVE_URL_ROOT='/'
然后重新启动Apache服务器

更多信息:

我希望有帮助


尊敬。

您是否再次预编译了资产?为此,您应该运行:

$ cd /opt/bitnami/apps/gitlab/htdocs
$ bundle exec bin/rake assets:precompile RAILS_RELATIVE_URL_ROOT='/'
然后重新启动Apache服务器

更多信息:

我希望有帮助


关于。

6.0已经发布,默认情况下在根URL中配置。

6.0已经发布,默认情况下在根URL中配置。

但是,这在GitLab 5.0中有一些图标错误。但是,在GitLab 5.0中有一些图标错误。这很好,如何更新?标准GitLab过程不适用(也作为备份过程),这很好如何更新?标准GitLab过程不适用(也作为备份过程)