Vhost Config issues

Jasper Frumau jasperfrumau at gmail.com
Fri Sep 3 03:30:29 PDT 2010


On Fri, Sep 3, 2010 at 2:13 PM, Ryan Schmidt <ryandesign at macports.org>wrote:

>
> On Sep 3, 2010, at 05:04, Jasper Frumau wrote:
>
> > Did that. Now dev-wordpress.com goes to the root (/opt/local/www) and
> not to opt/local/www/wordpress as indicated in
> /opt/local/apache2/conf/extra/vhosts/wordpress.conf:
> >
> > # START example.com
> > <VirtualHost *:80>
> >        DocumentRoot "/opt/local/www/wordpress/"
> >        ServerAdmin user at example.com
> >        ServerName dev-wordpess.com
>
> You misspelled "dev-wordpress.com" in your ServerName statement.
>

Silly me. Thanks Ryan! Still an issue after restart though:

jaspersmbp:logs jasper$ sudo /opt/local/apache2/bin/apachectl -k restart
Password:
httpd: Could not reliably determine the server's fully qualified domain
name, using ::1 for ServerName

Now wordpress.conf has:

 START example.com
<VirtualHost *:80>
       DocumentRoot "/opt/local/www/wordpress/"
       ServerAdmin user at example.com
       ServerName dev-wordpress.com
       ServerAlias www.dev-wordpress.com
       DirectoryIndex index.php

       # php setttings
      # php_admin_value open_basedir "/opt/local/www/clients/last.first/
example.com/:/private/var/tmp/:"
       #php_value engine off

       <Directory "/opt/local/www/wordpress/">
               Options FollowSymLinks
               AllowOverride All
               Order allow,deny
               allow from all
       </Directory>
</VirtualHost>
# END example.com


and /etc/HOSTS

127.0.0.1    localhost jaspersmbp dev-wordpress.com
255.255.255.255    broadcasthost
::1             localhost
fe80::1%lo0    localhost

But now when I go to http://dev-wordpress.com/ I do get to my Wordpress
setup, so why the warning?

P.S. Access log:

::1 - - [03/Sep/2010:14:28:50 +0400] "GET / HTTP/1.1" 200 6821
::1 - - [03/Sep/2010:14:28:51 +0400] "GET
/wordpress/wp-content/themes/twentyten/style.css HTTP/1.1" 200 21341
::1 - - [03/Sep/2010:14:28:51 +0400] "GET
/wordpress/wp-content/themes/twentyten/images/headers/path.jpg HTTP/1.1" 200
51727
::1 - - [03/Sep/2010:14:28:51 +0400] "GET
/wordpress/wp-content/themes/twentyten/images/wordpress.png HTTP/1.1" 200
849
::1 - - [03/Sep/2010:14:28:51 +0400] "GET
/wordpress/wp-content/uploads/2010/05/P1040153-300x225.jpg HTTP/1.1" 404
4214
::1 - - [03/Sep/2010:14:28:50 +0400] "POST
/wordpress/wp-cron.php?doing_wp_cron HTTP/1.0" 200 1
::1 - - [03/Sep/2010:14:28:59 +0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [03/Sep/2010:14:29:00 +0400] "OPTIONS * HTTP/1.0" 200 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100903/3b0d42c1/attachment.html>


More information about the macports-users mailing list