liberty-engine icon indicating copy to clipboard operation
liberty-engine copied to clipboard

아파치 웹 서버에서도 작동 할 수 있도록

Open gaon12 opened this issue 7 years ago • 5 comments

현재 리버티 엔진은 nginx가 설치 된 서버에서만 작동하는데요. 아파치 웹 서버에서도 설치가 가능하도록 할 수 있나요?

gaon12 avatar Jan 02 '19 06:01 gaon12

@gaon12 네 조만간 도와드리겠습니다.

NessunKim avatar Jan 02 '19 06:01 NessunKim

리버티 엔진은 자체적인 웹 서버로서 기능합니다.

nginx는 리버스 프록시로서만 작동하고요.

zlzleking avatar Jan 02 '19 06:01 zlzleking

Apache2 node reverse proxy로 검색하시기 바랍니다 2019년 1월 2일 (수) 오후 3:19, zlzleking [email protected]님이 작성:

리버티 엔진은 자체적인 웹 서버로서 기능합니다.

nginx는 리버스 프록시로서만 작동하고요.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/librewiki/liberty-engine/issues/53#issuecomment-450792986, or mute the thread https://github.com/notifications/unsubscribe-auth/AHWA6RukM0qiauIG2htAoddKPy8jHfpKks5u_E9ggaJpZM4ZmPt_ .

fregmented avatar Jan 02 '19 06:01 fregmented

@NessunKim 네 감사합니다.

gaon12 avatar Jan 02 '19 08:01 gaon12

apache2 sites-availables .conf sample

  • cat /etc/apache2/sites-available/some-wiki.conf
<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.
	ProxyPreserveHost On
	ProxyRequests off
	ProxyPreserveHost On
	AllowEncodedSlashes NoDecode

	ProxyPass / http://localhost:3000/ nocanon
	ProxyPassReverse / http://localhost:3000/
	ProxyPassReverse / http://wiki.your.domain/

	# 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
	ServerName wiki.your.domain

	ErrorLog ${APACHE_LOG_DIR}/somewiki/proxy_error.log
	CustomLog ${APACHE_LOG_DIR}/somewiki/proxy_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>

uyu423 avatar Nov 21 '22 20:11 uyu423