Apache vhosts not working

jtwhite

Community Advocate
Community Support
Messages
1,381
Reaction score
30
Points
0
Hi,

I am using webmin to aide in administering my server. I have two domains pointed to my server: justinsnetwork.com and forumize.info

I have added apache vhosts through webmin, making the server name each domain name, etc, then applied changes and restarted Apache.

For some reason it is not working. If you access either domain, it goes to the same page.


Any ideas?
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
Doublecheck the document paths on them
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
I fixed this for Paul.. I just forget how I did it.

I'll ask him when he gets back on IRC
 

jtwhite

Community Advocate
Community Support
Messages
1,381
Reaction score
30
Points
0
I fixed this for Paul.. I just forget how I did it.

I'll ask him when he gets back on IRC

Who's Paul? lol Like that literal name or does he have a screen name?


EDIT: Okay, I'll ask him.
Edit:
Okay, I figured this out but now for some reason, the only mysql user that will work is root... Any other user, even when given full privileges, cannot connect to the database.

What's going on with that?

EDIT2: Nooooo, now it's doing the same thing! WTF apache!?
 
Last edited:

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
Lol you know if you install webmin and usermin, It will sort that for you ;)

I have added apache vhosts through webmin
i assume he is using webmin

Check the HOST setting for the users, should be localhost, and then you need to use localhost in all the scripts(you can do that through phpMyAdmin, in case your using something else)
 
Last edited:

jtwhite

Community Advocate
Community Support
Messages
1,381
Reaction score
30
Points
0
There's no reason for it not to work. I know how to do everything manually and I'm really thinking about just doing it that way.
 
Last edited:

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
There's a line in httpd.conf that you have to add for vhosts to work... Still looking for Paul.
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
thats usually enabled by default, at least with the distros ive worked with.
it looks like this in apache2.conf:
Code:
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
 
Top