【发布时间】:2015-04-23 04:23:21
【问题描述】:
我真的需要Stackflow 的帮助,我来自巴西,所以.. 对不起我的英语不好...:)
我正在运行带有 Apache 的 Ubuntu 14.04 Lts 服务器。
我从 https://github.com/audreyt/ethercalc 安装了 EtherCalc
此应用程序在端口 8000 上运行
如何使用 Apache 保护对该端口的访问?
当有人尝试访问https://192.168.8.132:8000/
他必须从 .htpasswd 输入用户和登录名。
我的apache虚拟主机是这样的。
<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory /var/www/phpmyadmin>
Order allow,deny
allow from all
</Directory>
<Directory /var/www/phpipam>
Options FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
有人可以帮我吗?
【问题讨论】:
-
有人可以帮我吗?
标签: linux ubuntu apache2 restrict