I have installed varnish. For this, I have changed the apache port from 80 to 8080 and in my varnish file config default.vcl I have this:
我安装了清漆。为此,我已将apache端口从80更改为8080,并在我的varnish文件中配置default.vcl我有:
backend default {
.host = "127.0.0.1";
.port = "8080";
}
## Multiple virtual hosta
sub vcl_recv {
if (req.url ~ "^/phpmyadmin") {
return(pass);
}
if (req.http.host ~ "mydomain.xxx(:[0-9]+)?$") {
set req.backend = default;
}
}
sub vcl_fetch {
if (req.url ~ "^/phpmyadmin") {
return (hit_for_pass);
}
}
but when I want to access phpmyadmin on http://xxx.xxx.xxx.xxx:8080/phpmyadmin
, I get no access.
但是当我想访问http://xxx.xxx.xxx.xxx:8080/phpmyadmin上的phpmyadmin时,我无法访问。
Any idea about this problem?
对这个问题有什么想法吗?
1 个解决方案
#1
0
If you want to access port 8080 externally you need to allow it on the security group that instance is using.
如果要从外部访问端口8080,则需要在实例正在使用的安全组上允许它。
For example:
#1
0
If you want to access port 8080 externally you need to allow it on the security group that instance is using.
如果要从外部访问端口8080,则需要在实例正在使用的安全组上允许它。
For example: