Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在站点中设置子域';s服务器?_Html_Linux_Webserver - Fatal编程技术网

Html 如何在站点中设置子域';s服务器?

Html 如何在站点中设置子域';s服务器?,html,linux,webserver,Html,Linux,Webserver,我有一个域名,hacks4liveprojects.com,但我想做一个子域名;hacks4liveprojects.com之类的东西。我的网站托管在Ubuntu 17.10服务器上 如何做到这一点 我的网站位于:/var/www/html/如果您想知道 编辑:语法 在/var/www/html中创建一个名为somethinghere的目录 转到/etc/apache2/可用站点 将000-default.conf复制到somethinghere.conf 编辑somethinghere.con

我有一个域名,hacks4liveprojects.com,但我想做一个子域名;hacks4liveprojects.com之类的东西。我的网站托管在Ubuntu 17.10服务器上

如何做到这一点

我的网站位于:/var/www/html/如果您想知道

编辑:语法
  • 在/var/www/html中创建一个名为somethinghere的目录
  • 转到/etc/apache2/可用站点
  • 将000-default.conf复制到somethinghere.conf
  • 编辑somethinghere.conf
  • 将服务器名更改为somethinghere.hacks4liveprojects.com,将目录/var/www/html更改为目录/var/www/html/somethinghere。DocumentRoot也是如此
  • 然后使用sudo a2ensite somethinghere.conf激活它,并使用sudo服务apache2 reload重新加载您的apache设置

  • 已经有人给出了答案,关注这个Deze网站的是niet bereikbaar和IP地址van de server van cydia.hacks4liveprojects.com和niet worden gevonden。Zoek op Google naar cydia ERR_NAME_NOT_resolved听起来你需要在DNS主机上添加一个子域。在这里,您需要输入Web服务器的IP地址