如何在 httpt.conf 中创建 http://abc.mysite.com
我有一个运行良好的网站,位于:
/var/www/html/abcde
phpmyadmin 位于:
/var/www/html/myadmin
我的 httpd.conf 中有以下内容:
<VirtualHost *:80>
ServerName myadmin.mysite.com
DocumentRoot /var/www/html/myadmin
</VirtualHost>
我添加了一条 DNS 记录,因此 go to:
http://myadmin.mysite.com
确实会转到一个链接,例如:
但是,显示的页面是“Apache 2 测试页”。我之前的同一文件夹位于:/var/www/html/abcde/myadmin,我只是将其移动到当前位置。
I have a website running fine which is located at:
/var/www/html/abcde
and phpmyadmin placed in:
/var/www/html/myadmin
And I have the following in my httpd.conf:
<VirtualHost *:80>
ServerName myadmin.mysite.com
DocumentRoot /var/www/html/myadmin
</VirtualHost>
I have added a DNS record, so that going to:
http://myadmin.mysite.com
does go to a link such as:
However, the page which shows up is the "Apache 2 Test Page". I earlier had this same folder located at: /var/www/html/abcde/myadmin and I simply moved it to its present location.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的文件夹是否具有正确的权限,
您可以更改根文件夹的权限
,这是您的 httpd.conf 的样子
Check if you have the correct permissions on your folders
you can change the permission of your root folder
and here is how your httpd.conf should look like
phpmyadmin 本身正在强制 SSL 连接
$cfg['ForceSSL'] = true;
我通过将其设置为 false 来禁用它,一切正常。
phpmyadmin itself was forcing a SSL connection
$cfg['ForceSSL'] = true;
I disabled that by setting it to false and everything worked.