Originally Posted by requinix
For a couple, yes. But there's also
ServerName (URL address blocked: See forum rules)
ServerAlias (URL address blocked: See forum rules)
ServerName (URL address blocked: See forum rules):443
I am sorry for that, Here is my entire post again:
Hi, I have an issue with Apache Virtual hosts. I installed a web server and mail server. Apache, PHP, MySQL and Postfix Dovecot ClamAV Amadis Spamassasin a RoundCube for Webmail on a Centos 6 box.
Now, my issue is that I have my DNS like this:
@ x.x.x.x A record
www domain dot com CNAME
webmail domain dot com CNAME
Now, I can access my email via web using roundcube like this: (www dot domain dot com /webmail)
However, when I try to access (webmail dot domain dot com) it redirects me to the default page when an index is not found.
My Virtual host configuration is like this:
ServerName (www dot domain dot com)
ServerAlias (www dot domain dot com)
DocumentRoot /srv/www/domain dot com/public_html/
ErrorLog /srv/www/domain dot com/logs/error.log
CustomLog /srv/www/domain dot com/logs/access.log combined
ServerName webmail dot domain dot com
I believe there is something with my vhost configuartion above, however, cant figure it out, since I have read a lot and all the vhost files seems to be exactly like mine. So, I can't get webmail dot domain dot com to go to my roundcube webmail and I ahve been fighting with this all day long.
Can someone help me with this, if you need further information, please let me know. Also, even if I use http, it changes it to https... I generated self signed certificates for my email access. For apache SSL conf I have these lines:
# General setup for the virtual host, inherited from global configuration
ServerName www dot domain dot com:443
# Use separate log files for the SSL virtual host; note that LogLevel
# is not inherited from httpd conf.
Of course there is more, but I believe that info may be enough. Please, can someone help me with this?
Sorry for the domain dot com but due to forum rules, since I am a new member I cant use URLs, so hope you understand. Regards.