|
I Enviroments
Ubuntu 14.04 LTS/16.04 LTS
Apache2
II Steps
$ sudo a2enmod proxy proxy_http
# Load modols of proxy,proxy_http
$ sudo vi /etc/apache2/site-available/000-default.conf
# Open configuration file.
III Editor
Insert the following contents between <VirtualHost *:80> and </VirtualHost>
-----------------------<Begin>--------------------------
ServerAdmin webmaster@localhost
ServerName localhost
ServerAlias localhost
ProxyRequests off
DocumentRoot /var/www/html
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /owncloud/ !
# do pass all pages under '/' to 'http://localhost:3000/'
ProxyPass / http://localhost:3000/
# do pass all pages under '/' to 'http://localhost:3000/'
ProxyPassReverse / http://localhost:3000/
# do reverse all pages under 'http://localhost:3000/' to '/'
-----------------------<Begin>--------------------------
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-4-25 06:40
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社