F
F
Foxeki2020-02-19 02:55:28
Apache HTTP Server
Foxeki, 2020-02-19 02:55:28

How to make automatic subdomains on CentOS 7?

How to make automatic subdomains on CentOS 7?
I'm trying to create automatic subdomains.
I need that when I enter in the address, for example, test.mydomain.com
Everything goes to the /var/www/subdomain file.
I did it, but it doesn't work quite correctly

/var/www/mydomain.com/public_html/content/themes/.htaccess: deny requires at least two arguments, 'from' followed by hostnames or IP-address wildcards, referer: mydomain.com

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AUser0, 2020-02-19
@Foxeki

Well, it writes to you in white and English "File .../.htaccess: the 'deny' directive must have two arguments, the word 'from' and the hostname/IP address".
Apparently you have "Deny 127.222.333.444" written, but it should be "Deny from 127.222.333.444".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question