LINUX.ORG.RU

помогите с настройкой apache2

 ,


0

1

пытаюсь установить openproject и glpi на apache. по отдльности всё работает но вместе не хочет.

конфиг openproject,создался автоматом


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

<VirtualHost *:80>
  ServerName EsetGlpi
  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>



конфиг glpi,создавал сам


<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

	ServerName EsetGlpi
	ServerAdmin s.admin@blabla.ua
	DocumentRoot /var/www/glpi/public_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>


доступ нужен только по локалке к примеру

http://192.168.100.252/openproject/ http://192.168.100.252/glpi/

Вопрос: как разрулить несколько приложений на одном веб-сервере?
Ответ:
а) разные хосты/айпишники;
б) разные порты;
в) доступ к приложениям по разным URL Path ('/app1/', 'app2');
г) разные ServerName в виртуальных хостах;
д) всякие извращения, о которых не будем.

thesis ★★★★★ ()
Последнее исправление: thesis (всего исправлений: 1)