The MU forums have moved to

Snow Leopard Server with WPMU adding Wildcard (3 posts)

  1. chrisriley
    Posted 14 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
    Posted 14 years ago # maybe?

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

  3. frankindelicato
    Posted 14 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.
    ## localhost phpMyAdmin # phpMyAdmin - Apple wpmu # WordpressMU - Apple user1.wpmu # WordpressMU - Apple (add more as needed) localhost2 # Wordpress - MAMP localhost3 # bbpress - MAMP localhost4 # drupal - MAMP localhost5 # joomla - MAMP localhost6 # YouTubeVideoBrowser (Google) - MAMP localhost7 # YouTubeVideoApp (Google) - MAMP localhost8 # Books Data API Browser in PHP (Google) - MAMP localhost9 # osCommerce - MAMP localhost10 # Calendar.php - MAMP localhost11 # GoggleBaseDataApi - MAMP localhost12 # EBayAPI - MAMP 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 *:80>
    DocumentRoot /Users/frankindelicato/Sites/phpMyAdmin
    ServerName phpMyAdmin

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

    In the Apple httpd.conf file:

    <Directory />
    Options Indexes FollowSymLinks
    AllowOverride All

    <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
    # 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

    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 14 years ago by chrisriley
  • Latest reply from frankindelicato