RE: Control-M (^M) Characters in httpd-vhosts.conf
07-09-2016, 01:12 AM
(This post was last modified: 07-09-2016, 01:13 AM by mckinnon81.)
(07-09-2016, 12:35 AM)TGates Wrote: Again, I suggest you use notepad++ as I have been using this for years now (and it is maintained/updated regularly unlike notepad2) for your editing. Running dos2unix is more of a hack than a fix. You could try and make sure there are no empty spaces after each line added to your custom vhost entries to remove the ^M.
I have tried using notepad++ but this has still not fixed the issue.
If I place a single line (by typing it in) <VirtualHost> with out pressing ENTER and saving it adds the line with no issues.
If I add (typing it)
Code:
</VirtualHost>
<VirtualHost *:443>
I get the following in the httpd-vhosts.conf file
Code:
</VirtualHost>^M
<VirtualHost *:443>
So typing it is not working either. I am about to install Sentora on a fresh server to see what happens.