Apache2 help in Debian(Perfect Sarge Setup)

Discussion in 'Server Operation' started by Rocky, Nov 15, 2006.

  1. Rocky

    Rocky New Member

    I currently have a Mandrakelinux 10.1 server running apache with a website configured that has a mysql database backend.

    This server was setup by someone who didn't have much experience with Linux, so there are some problems with it. This server was meant to be setup as a internet and intranet server ,with the intranet being inaccessible from the outside.

    I really would like to move to Debian Sarge 3.1.

    I know how to install Debian using the first two pages from Falko's perfect Debian setup guide. I know how to get Apache2, PHP5 and PHP4(CGI) configured on the server, again using Falkos guide on that. I also know how to get mysql on there.

    Does anyone know how to configure Apache2 for an internet and intranet environment? I'd really like the intranet to be inaccessible from the internet.

    Ultimately, I would like to have a server that will act as my Web/Intranet(Apache2 with PHP5 and PHP4), MySql, FTP(Proftpd Virtual Users with Quota), File/Print Server(Samba) and Spam filter via Piratefish 2.3.

    I already know how to get the Proftpd working. I know how to get the Spamfilter working. I just need to know how to configure Apache2.

    Can someone point me in the right direction?

    Thanks for you help.

    Rocky
     
    Last edited: Nov 16, 2006
  2. falko

    falko Super Moderator ISPConfig Developer

    That's no problem, as Apache doesn't care if it in a LAN or on the internet. You must make sure that you use one of the IP addresses from the ifconfig output in your Apache vhosts, otherwise name-based vhosts won't work.
    Outside your LAN the DNS records for your domains should resolve to your public IP address; this might also work for clients inside your LAN if your router supports loopbacks. If your router doesn't, you can set up an internal DNS server that resolves your domains to your internal IP addresses and make client computers inside your LAN use that internal DNS server. Or you could modify your client computers' hosts file: http://www.howtoforge.com/forums/showthread.php?t=432&highlight=hosts file windows
     
  3. Rocky

    Rocky New Member

    You're the man Falko. I was able to setup 2 virtualhost, one for the internet and the other for the intranet. Of course I had to also created 2 subfolders within my www folder to be the document root for the 2 websites.
    I also had to download the php5-mysql package and then enable mysql in my php.ini file by uncommenting the line extensions=mysql.so.

    This worked out great and gave me php support.

    I was wondering Falko, would you happen to have some instrustions on how to add bandwidth control to your Proftpd with Virtual Users and Quota guide? I have this currently working for me but I want to try to limit the users speed. Let me know if this can be done.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I don't know if this can be done with ProFTPd, but it can be done with PureFTPd: http://www.howtoforge.com/pureftpd_mysql_virtual_hosting
     

Share This Page