Updates from March, 2005 Toggle Comment Threads | Keyboard Shortcuts

  • wade 17:54 on Monday, 14 March 2005 Permalink | Log in to leave a Comment  

    Debugging PHP 

    For our March meeting, Michael Baily presented on debugging PHP. His knowledge and experience provided for an excellent overview and introduction to PHP debugging utilities and methods.

  • Ken Snyder 6:25 on Tuesday, 8 March 2005 Permalink | Log in to leave a Comment  

    Apache virtual hosts without specifying IP address 

    This weekend, I had quite the adventure configuring Apache on my home server. My IP address happened to change, and I wanted to update my Apache httpd.conf file so that my webserver would work regardless of my IP address. I also wanted to add Virtual Hosts to my personal web sites so that my IP address would no longer be visible to visitors.

    The configuration turned out to be easy. Let me cover the key parts for my Win XP Pro Apache 2 configuration with a single IP address:

    Listen *:80NameVirtualHost *  

    The above tells Apache to serve web pages for all IP addresses on port 80and to use Virtual Hosts for all IP addresses

     ServerName http://www.my-domain-1.com DocumentRoot "c:wwwrootfolder-1" ServerAlias my-domain-1.com *.my-domain-1.com ServerName http://www.my-domain-2.com DocumentRoot "c:wwwrootfolder-2" ServerAlias my-domain-2.com *.my-domain-2.com

    The above tells Apache to serve web pages (on all IP addresses) fromfolder-1 where requests have my-domain-1.com or something.my-domain-1.com inthe web page. Also sets up Apache to serve my-domain-2.com documents fromfolder-2.

    Presto! Now I have two domains pointing to my IP address, and apache canseamlessly differentiate between the two without knowing my IP address. Itis sort of basic, but there are zillions of ways to configure apache!

    More info ยป

compose new post
next post/next comment
previous post/previous comment
show/hide comments
go to top
go to login
show/hide help
shift + esc