batfastad
October 9th, 2008, 06:16 PM
Hi everyone
I've been running our intranet database server on Apache2/PHP5/MySQL5 on Windows 2000 for a few years now.
But I've decided to move it over onto a new machine, which is also our NAS
I've set Apache/MySQL to be running on one of the onboard gigabit NICs, and Samba/Netatalk on the 2nd NIC
That's all working great.
I'm struggling with Apache slightly, it seems things have to be configured differently in Ubuntu.
What used to happen was there would be httpd.conf and I would just change that and re-start Apache. I always found it useful to keep backups of that 1 file.
However now there's apache2.conf, httpd.conf as well as individual ones for each enabled module and also some sort of sites-enabled/000-default
I've edited apache2.conf and commented out many of the instructions, and modified them into my httpd.conf
I noticed that apache2.conf just includes all the module confs and httpd.conf anyway
I already commented out the line to include ports.conf, and merged the listen commands into my httpd.conf
But my question is how virtual hosts are enabled/disabled. It seems there's some debian specific commands that can enable/disable vhosts
But instead can I just comment out all that and just specify my virtualhosts and default www <Directory> stuff in my httpd.conf?
Or do I need to use the debian apache commands for enabling/disabling vhosts/sites?
Thanks, B
I've been running our intranet database server on Apache2/PHP5/MySQL5 on Windows 2000 for a few years now.
But I've decided to move it over onto a new machine, which is also our NAS
I've set Apache/MySQL to be running on one of the onboard gigabit NICs, and Samba/Netatalk on the 2nd NIC
That's all working great.
I'm struggling with Apache slightly, it seems things have to be configured differently in Ubuntu.
What used to happen was there would be httpd.conf and I would just change that and re-start Apache. I always found it useful to keep backups of that 1 file.
However now there's apache2.conf, httpd.conf as well as individual ones for each enabled module and also some sort of sites-enabled/000-default
I've edited apache2.conf and commented out many of the instructions, and modified them into my httpd.conf
I noticed that apache2.conf just includes all the module confs and httpd.conf anyway
I already commented out the line to include ports.conf, and merged the listen commands into my httpd.conf
But my question is how virtual hosts are enabled/disabled. It seems there's some debian specific commands that can enable/disable vhosts
But instead can I just comment out all that and just specify my virtualhosts and default www <Directory> stuff in my httpd.conf?
Or do I need to use the debian apache commands for enabling/disabling vhosts/sites?
Thanks, B