By default ispCP will create domains so all the requests to subdomains are redirected to them. This means that if you create a somedomain.tld account and then try to access somesubdomain.somedomain.tld you will see the content of somedomain.tld. If you don't like this behaviour (e.g. want to create an account for somesubdomain.somedomain.tld) follow these instructions: 1. Stop the ispCP Daemon # /etc/init.d/ispcp_daemon stop 2. Strip the wildcard # cd /etc/ispcp/apache/parts
# sed -i -e "s/[[:space:]]*\*\.{DMN_NAME}$//" dmn_entry.tpl
# sed -i -e "s/[[:space:]]*\*\.{ALS_NAME}$//" als_entry.tpl
# sed -i -e "s/[[:space:]]*\*\.{SUB_NAME}$//" sub_entry.tpl
3. Start the ispCP Daemon # /etc/init.d/ispcp_daemon start Newly created domains/subdomains/aliases won't have the wildcard so you will be able to create subdomains as accounts. |
