AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 769216
Accepted
Frederik Witte
Frederik Witte
Asked: 2016-04-10 07:43:26 +0800 CST2016-04-10 07:43:26 +0800 CST 2016-04-10 07:43:26 +0800 CST

我无法启用我的网站?[关闭]

  • 772
关闭。这个问题需要细节或清晰。它目前不接受答案。

想改进这个问题?通过编辑此帖子添加详细信息并澄清问题。

6年前关闭。

改进这个问题

我有两个网站:

iq-dev.de 和 iq-dev.com

iq-dev.de 可以正常工作,也可以通过 www.iq-dev.de 获得。我有一个安装了 linux 的云服务器,并通过 ssh 编辑所有内容。

我的主机名是“thor”,我试过:

  • 将 iq-dev.com 添加到我的主机文件
  • 在 apache2 文件中将 iq-dev.com 添加为“启用站点”/“站点可用”

我的主机看起来像这样:

127.0.0.1       localhost localhost
82.223.17.182 iq-dev.com thor
82.223.17.182 iq-dev.de thor

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

在我的可用站点和已启用站点中,我添加了iq-dev.com.conf具有以下设置的文件:

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        ServerName iq-dev.com
        ServerAlias www.iq-dev.com
        DocumentRoot /var/www/iq-dev.de/main

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
#LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

谁能告诉我哪里出错了?我现在真的不知道该怎么办。我搜索了主机文件和站点可用/站点启用的不同教程,但我看不到任何错误。

我想做的当然只是让 iq-dev.com 解析到与 iq-dev.de 相同的文件夹。

hosts apache-2.4
  • 2 2 个回答
  • 50 Views

2 个回答

  • Voted
  1. nidhi
    2016-04-10T07:55:19+08:002016-04-10T07:55:19+08:00

    如果您希望两个网站上的内容相同,请编辑“iq-dev.de”的配置文件,添加以下内容:

    ServerAlias iq-dev.com, www.iq-dev.com
    
    • 1
  2. Best Answer
    Colt
    2016-04-10T08:05:21+08:002016-04-10T08:05:21+08:00

    您没有为iq-dev.com

    联系您的域名提供商,将域名指向您的网络服务器

    • 1

相关问题

  • 本地“主机”文件中的条目是否覆盖正向和反向名称查找?

  • Internet Explorer 未绕过本地地址的代理

  • 保持主机文件更新的最佳方法

  • 如何让我的计算机将自己称为 192.168.1.* 上的任何 ip?

  • 如何在不同的操作系统上设置 HOSTS 文件?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve