The MU forums have moved to WordPress.org

Snow Leopard Server with WPMU adding Wildcard (3 posts)

  1. chrisriley
    Member
    Posted 10 years ago #

    Please forgive me if this is easily found somewhere in here. I have looked extensively and can't make heads or tails of some instructions. I have SLS and I am trying to add the wildcard to DNS.

    Does someone know what I need to do from square 1 for this to work? Any help would be appreciated. What do I need to do to get subdomains to work? It seems that 10.6 is a bit different than the earlier versions of OS X server.

    Thank you for any help and direction you can provide.

  2. tdjcbe
    Member
    Posted 10 years ago #

    http://geoffhankerson.com/node/108 maybe?

    I don;t use Snow Leopard so that's a guess.

  3. frankindelicato
    Member
    Posted 10 years ago #

    I am running a development Macbook Pro without the Snow Leopard Server software. I have Wordpress and some other test sites running with MAMP and Wordpress-MU with sub-domains running under Apple Apache2/PHP. The MAMP listens on port 8888 and the Apple Wordpress-MU has to listen on port 80. Here is how I configured it:
    ##
    # Host Database
    #
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    ##
    127.0.0.1 localhost
    127.0.0.1 phpMyAdmin # phpMyAdmin - Apple
    127.0.0.1 wpmu # WordpressMU - Apple
    127.0.0.1 user1.wpmu # WordpressMU - Apple (add more as needed)
    127.0.0.1 localhost2 # Wordpress - MAMP
    127.0.0.1 localhost3 # bbpress - MAMP
    127.0.0.1 localhost4 # drupal - MAMP
    127.0.0.1 localhost5 # joomla - MAMP
    127.0.0.1 localhost6 # YouTubeVideoBrowser (Google) - MAMP
    127.0.0.1 localhost7 # YouTubeVideoApp (Google) - MAMP
    127.0.0.1 localhost8 # Books Data API Browser in PHP (Google) - MAMP
    127.0.0.1 localhost9 # osCommerce - MAMP
    127.0.0.1 localhost10 # Calendar.php - MAMP
    127.0.0.1 localhost11 # GoggleBaseDataApi - MAMP
    127.0.0.1 localhost12 # EBayAPI - MAMP
    255.255.255.255 broadcasthost
    ::1 localhost
    fe80::1%lo0 localhost

    The Apple httpd-vhosts.conf file: (there is a different one for MAMP)

    <VirtualHost *:80>
    DocumentRoot "/Users/frankindelicato/Sites"
    ServerName localhost
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot /Users/frankindelicato/Sites/phpMyAdmin
    ServerName phpMyAdmin
    </VirtualHost>

    # Wildcard domain *.wpmu must be last VirtualHost
    <VirtualHost *:80>
    DocumentRoot /Users/frankindelicato/Sites/wordpressmu
    ServerAlias *.wpmu
    ServerName wpmu
    # RedirectMatch 301 (.*) http://wpmu$1
    </VirtualHost>

    In the Apple httpd.conf file:

    <Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
    </Directory>

    <Directory "/Users/frankindelicato/Sites">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    Options All
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    AllowOverride All
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
    </Directory>

    Both servers can run at the same time and are addressed as follows:

    http://wpmu/ # for Wordpress-mu
    http://user1.wpmu/ # for test user1 blog

    http://localhost2:8888/ # for Wordpress blog on MAMP
    http://localhost4:8888/ # for drupal site

    of course the MAMP also has httpd.conf and (it's vhosts are in that file also) and both systems share the hosts file. Hope this helps...

About this Topic

  • Started 10 years ago by chrisriley
  • Latest reply from frankindelicato