我刚得到一个linode帐号和一些域名。有了这些原材料,我想做的是:
example.com -- static hosting
gitlab.example.com -- install gitlab here
dev.example.com -- be able to install ruby stuff here
another-domain.com -- run a node server from here
third-domain.com -- run another node server from here
我只拥有使用Apache的经验,但我不知道如何
普通域名和子域名可以有VirtualDocumentRoot吗?
http://www.example.com/ or http://example.com
用途:
/var/www/example.com/
和
http://*.example.com
使用
/var/www/example.com/subdomains/*
到目前为止我所拥有的:
正常域除了子域之外,看起来总是重定向到正常域。我使用的信息来自
# get the server name from the Host: header
UseCanonicalName Off
# this log format can be
我有一个问题的域名链接到我的Debian服务器上的一个文件夹(使用Apache)。
(我将使用domain.com作为托管文件的服务器的链接,使用newdomain.com作为要链接到它的域名。)
事实
该网站由.html页面组成。我在www.domain.com/subfolder/中有这个用于删除“.html”的.htaccess。subfolder-folder是我在服务器上托管网站的地方。这对于www.domain.com/subfolder/photos来说是完美的。
RewriteEngine on
#example.com/page will display the c