I added subdomain. It was created. In public_html folder there is a folder for my subdomain.
In DNS my subdomain is added too as record A with IP like for domain 77.xxx.xx.xx
When I try open my subdomain addres in webbrowser I have error:
sub.mydomain.com server IP address could not be found
Domain works and I can open webpage by url with main domain.
I have https. But subdomain doesn't work for http and https.
I read that maybe I have to configure wildcard. But I don't know how.
In httpd.conf I have configuration for my subdomain:
In DNS my subdomain is added too as record A with IP like for domain 77.xxx.xx.xx
When I try open my subdomain addres in webbrowser I have error:
sub.mydomain.com server IP address could not be found
Domain works and I can open webpage by url with main domain.
I have https. But subdomain doesn't work for http and https.
I read that maybe I have to configure wildcard. But I don't know how.
In httpd.conf I have configuration for my subdomain:
- <VirtualHost 77.xxx.xx.xx:80 >
- ServerName www.sub.mydomain.com
- ServerAlias www.sub.mydomain.co sub.mydomain.com
- <VirtualHost 77.xxx.xx.xx:443 >
- SSLEngine on
- SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
- SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
- SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca
- ServerName www.sub.mydomain.com
- ServerAlias www.sub.mydomain.com sub.mydomain.com