Tag Info

Hot answers tagged

1

To restrict the use of foo.bar.sites.example.com you have to place another VirtualHost above the existing one: <VirtualHost *:80> ServerName foo.bar.sites.example.com ServerAlias *.*.sites.example.com # .... </VirtualHost> Now you can block or redirect the access. However it's important that you place it above the other VirtualHost ...


1

It depends how you want to manage your domain DNS. If you're using your domain registry DNS, you need to only change the record of your subdomain to point to your new server's IP address. If on the other hand, you like to manage your domain DNS using your hosting provider control panel or WHM etc, you then need to change your domain nameservers at your ...


1

You can't create a subdomain using only PHP application. First you need to configure apache virtual host to accept requests for multiple domains. <VirtualHost *:80> ServerName www.example.com ServerAlias example.com *.example.com DocumentRoot /www/domain </VirtualHost> With wildcard subdomain *.example.com, main domain will ...


1

I solved my problem, here is the solution. I have two: First: Updating DNS manager by Zpanel, editing the main domain and in CNAME tab just add the new subdomain manually. It's normal doesn't show the subdomain on DNS management, just create a new CNAME entry, save and in SSH write: php /etc/zpanel/panel/bin/daemon.php This command will make your daemon ...


1

Here is the solution: open page on your domain folder wp-admin\network\site-new.php replace if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) with if ( preg_match( '|^([a-zA-Z0-9.-])+$|', $blog['domain'] ) )



Only top voted, non community-wiki answers of a minimum length are eligible