Here's how I'm trying to get it setup:
domains I own: feedmebits.nl(hosting provider needs to edit nameservers), feedmebits.net and feedmebits.com
For feedmebits.com I also pointed towards my dedicated servers ip.
My website data I have under /home/feedmebits/www/feedmebits.nl
So basically when I go to either feedmebits.com feedmebits.nl or feedmebits.net I went to end up where my virtualdomain website is located.
Right now I tried editing my apache file and change my alias to http:/feedmebits.com and a and also changing that in the hosts file to see if my
joomla site would be accessible but I still end up in my bucket. So I'm thinking apache still can't read out of my /home/feedmebits/www folder
So the main problem I'm having right now is getting apache to read/use /home/feedmebits/www instead of /var/www/html/.blackhole when going to
feedmebits.com (cuz feedmebits.nl I have set to the same ip as feedmebits.com so they should both end up in the same place)
I hope it's a bit more clear now. Cuz it's getting kind of confusing, but I guess in the end I will learn from it :)
host control panel domein:
feedmebits.nl: connected to my dedicated server ip but they need to change the nameservers
feedmebits.net: doesn't really matter right now, can change the ip later
feedmebits.com: has my dedidated server ip connected to it.
How it is setup in my config file.
And here's what my /etc/hosts file looks like:
/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
#I edited file from here:
myserverip
http://feedmebits.nl
---------------------------------
httpd:conf
# Custom virtualhosts
NameVirtualHost myserverip:80
<virtualhost myserverip:80></virtualhost>
## -- DEFAULT: should NEVER get here normally!
ServerName nothing.here
ServerAdmin abuse@127.0.0.1
DocumentRoot /var/www/html/.blackhole
ErrorLog /var/log/httpd/sniffer_error.log
CustomLog /var/log/httpd/sniffer_access.log combined
Loglevel warn
DirectoryIndex index.htm
ScriptAlias /cgi-bin /var/www/html/.blackhole
## this redirects any sniffers over to the right page...
#AliasMatch ^/(.*) /websites/.blackhole/index.php
<virtualhost myserverip:80></virtualhost>
ServerAlias
http://feedmebits.nl
ServerAdmin maarten@feedmebits.nl
DocumentRoot /home/feedmebits/www/feedmebits.nl
ServerName feedmebits.nl
ErrorLog /var/log/httpd/websites/feedmebits.nl/error.log
CustomLog /var/log/httpd/websites/feedmebits.nl/access.log combined
Loglevel warn
<directory></directory>
AllowOverride None
order allow,deny
allow from all
Options Indexes Includes FollowSymLinks