如何访问phpmyadmin的只有8080端口Apache中 [英] how to access phpmyadmin only the port 8080 in apache

查看:99
本文介绍了如何访问phpmyadmin的只有8080端口Apache中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过

vim /etc/phpmyadmin/apache.conf

但我不能在这里放一个虚拟主机。

but I can not put a VirtualHost here.

我想改变这个配置只列出端口8080,谁能帮助?

I want to change this configuration to list only the port 8080, can anyone help?

感谢您

我要的是:

www.site.com/phpmyadmin -> failure
www.site.com:8080/phpmyadmin -> OK

我要离开的端口80的网站的其余部分。

I want to leave access to port 80 for the rest of the site.

推荐答案

您可以Listen指令改为8080。

You can change the Listen directive to 8080.

搜索Apache配置为侦听,并从

Search the apache configuration for Listen and change it from

Listen 80

Listen 8080

和重新启动服务器。请记住,这将是全球整个Apache服务器虽然。在CentOS或红帽,它会被称为httpd.conf文件

And restart the server. Bear in mind, this will be global to the whole apache server though. On centos or redhat, it'll be called "httpd.conf"

这篇关于如何访问phpmyadmin的只有8080端口Apache中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆