简体   繁体   English

我的域只适用于 https://www.domainname.com 否则 domainname.com 和 www.domainname.com 不起作用

[英]My domain only works with https://www.domainname.com otherwise domainname.com and www.domainname.com not working

My domain only works with https://www.domainname.com otherwise domainname.com and www.domainname.com not working domain managed by godaddy and hosted on ubuntu and sslcert installed.我的域仅适用于https://www.domainname.com否则 domainname.com 和 www.domainname.com 不工作域由 Godaddy 管理并托管在安装的 ubuntu 和 sslcert 上。

Pls suggest.请建议。

If you're using an Apache server like your tags suggest, you should be able to add ServerAlias commands within your .conf file like so:如果您使用标签建议的 Apache 服务器,您应该能够在 .conf 文件中添加 ServerAlias 命令,如下所示:

<VirtualHost *:443>
  ServerAdmin you@domainname.com
  DocumentRoot /opt/www/htdocs/domainname_com

  ServerName www.domainname.com
  ServerAlias domainname.com
</VirtualHost>

I highly suggest expanding and improving your question to get more detailed answers.我强烈建议扩展和改进您的问题以获得更详细的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM