PDA

View Full Version : [ubuntu] Apache VHOSTS won't work.


Ignite_nz
June 4th, 2008, 08:37 AM
So, I followed the perfect guide for a server on HowtoForge for Ubuntu 8.04, and installed ISPConfig. Everything on my server works, EXCEPT, Whenever I go to any of my websites, all I see is

"It work's!"

Apache has vHosts etc setup, but for some reason they aren't registering. Here's all my Apache configs:

http://pastebin.org/40542
http://pastebin.org/40544

I'm aware I'm being very vauge here, but with the massive amount of information I could be providing, it's best probably to provide what is asked. I've provided the above to start off with, and will give more if needed.

eak
June 4th, 2008, 11:12 AM
do you make dns option ?? on ispconfig

Ignite_nz
June 4th, 2008, 04:35 PM
Yes. I've made the DNS on ISPConfig, and it shows up in Bind, and I can see all the records fine. This is some description of Apache problem. It's not parsing the header for some stupid reason.:confused::confused:

spiderbatdad
June 4th, 2008, 05:04 PM
I have always used virtual hosts in the virtual hosts directory: /etc/apache2/sites-available/my_site. "It works!" is the default file from /var/www as specified by /etc/apache2/sites-available/default.

Create /sites-available/your_site. Copy /default to /your_site, then edit appropriately.

sudo a2dissite /etc/apache2/sites-available/default
sudo a2ensite /etc/apache2/sites-available/your_site

/sites-available/* is symlinked to /sites-enabled when a2ensite is run.

Ignite_nz
June 6th, 2008, 11:52 PM
I found the problem.

I was binding to a public IP, but I was behind a router -_-;;