Updates from Ken Snyder RSS Toggle Comment Threads | Keyboard Shortcuts

  • 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 »

     
  • Ken Snyder 5:11 on Saturday, 26 February 2005 Permalink | Log in to leave a Comment  

    Professional PHP5 

    This is an awesome book that I would highly recommend. I am the type of person who learns well by considering how things fit into the big picture. Professional PHP5 really does a great job of describing the issues of PHP software design in its most structured forms.

    Professional PHP5 starts with PHP5 Object Orientation Programming (OOP) concepts and moves into the ideas of broad patterns and toolkits. They provide code you can tryout yourself; doing is of course the best way to learn.

    You can build a tool kit with useful collection classes, generic object classes, communication classes, debugging classes, and abstract classes. You can learn the practical and ideal implementations of a Model View Controller pattern and Unit Testing. You can get a feel for SOAP, the finite state machine, and PHP session handling.

    The book also has great tips and examples of project management, system design and planning, quality testing, and deployment.

    It is a really great book for a wide audience, and I’d recommend it for serious PHP programmers.

    View Amazon Summary �


    Professional PHP5
    Author: Edward Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, and Alec Cove
    Publisher: Wrox Publishing
    Published: November 2004
    ISBN: 0764572822
    Pages: 662
    Rating:

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel