English 中文(简体)
子域的子域别名
原标题:Subdomain alias of subdomain

在Linux Plesk服务器上,我想要以下内容:

来源:sub.domain.com

别名:

alias1.domain.com ->来源:sub.domain.com

alias2.domain.com ->来源:sub.domain.com

alias3.domain.com ->来源:sub.domain.com

所以我想要几个子域指向源子域。我该怎么做?我能做一个符号链接吗?

问题回答

我自己刚刚碰到这个。

在子域conf文件夹中创建一个文件vhost.conf:

/var/www/vhosts/domain.com/subdomains/source-sub/conf/vhost.conf

# add aliases to that file
ServerAlias  alias1.domain.com
ServerAlias  alias2.domain.com
ServerAlias  alias3.domain.com

# reconfigure PSA s httpdmng
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com




相关问题
Hibernate, aliases

I noticed that hibernate generates different aliases for the same columns each time i try to access the same table: Hibernate: select person0_.id as id0_0_, person0_.nam as nam0_0_, person0_.fam as ...

Namespaces, aliases and Visual Studio Forms Designer

I m having a problem with conflicting namespaces and code that gets autogenerated by the forms designer in Visual Studio 2008. I have search many forums and different documentation, but have not been ...

httpd.conf: ignore certain directories?

I have an httpd.conf file that looks like this: Alias /media/ /var/projects/potato_gun/media/ WSGIScriptAlias / /var/projects/potato_gun/django.wsgi The problem is, I broke all my URLs that start ...

SQLite column aliasing

Premise I recently ran into a bug in a select statement in my code. It was fairly trivial to fix after I realized what was going on, but I m interested in finding a way to make sure a similar bug ...

热门标签