I have one IP on my server. I am trying to have three virtual servers on it. I have set it up like this:
I am running Mandrake 9.1 with Apache 2.0.45. The problem with this setup is that, while they direct fine, I have annoying errors with permissions since Apache is running as a different user than the users log into FTP as. I see you can set the user/group Apache runs as in an IP-based virtual host, but I can't figure out how to do something like this for a named virtual host.
Is this possible? And if so, how?
I read some of the Apache documentation, and it showed that you could use hostnames for an IP-based virtual server (while they don't reccomend it because of DNS problems), so would this work using a hostname or not since they are all on the same IP? I only have one (external) IP and it is dynamic.
Anyone have any suggestions? Is there any reference on how to do something like this or does anyone know of an alternative?
Thanks in advance for any help.
Code:
NameVirtualHost *
#Main Server
<VirtualHost *>
ServerName milas.dnsalias.com
DocumentRoot /var/[URL unfurl="true"]www/html[/URL]
</VirtualHost>
#Virtual Host 1
<VirtualHost *>
ServerName boballen.dyndns.org
DocumentRoot /var/[URL unfurl="true"]www/virtual/bob_allen[/URL]
</VirtualHost>
#Virtual Host 2
<VirtualHost *>
ServerName milas.gotdns.com
DocumentRoot /var/[URL unfurl="true"]www/virtual/milas[/URL]
</VirtualHost>
I am running Mandrake 9.1 with Apache 2.0.45. The problem with this setup is that, while they direct fine, I have annoying errors with permissions since Apache is running as a different user than the users log into FTP as. I see you can set the user/group Apache runs as in an IP-based virtual host, but I can't figure out how to do something like this for a named virtual host.
Is this possible? And if so, how?
I read some of the Apache documentation, and it showed that you could use hostnames for an IP-based virtual server (while they don't reccomend it because of DNS problems), so would this work using a hostname or not since they are all on the same IP? I only have one (external) IP and it is dynamic.
Anyone have any suggestions? Is there any reference on how to do something like this or does anyone know of an alternative?
Thanks in advance for any help.