Discussion:
virtual host problems
Robin Paulson
2011-09-29 21:25:07 UTC
Permalink
hi all,
i set up a blog last night, together with a domain i bought. the blog
is wordpress and hosted on the same ubuntu lucid server as two other
websites i run.

if i type in the domain name, it goes to the site correctly, and the
domain name is shown in the address bar:
http://universitywithoutconditions.ac.nz/

however, if i hover over a link to a sub-page, say 'About', it gives me
a link of another website on that server:
https://bumblepuppy.org/uwc_ac_nz/?page_id=11

can anyone suggest what i've done wrong?

i'm guessing it's something wrong in httpd.conf

the other site on that server reports the domain name correctly

cheers,
--
robin

http://bumblepuppy.org/blog/?p=237 - government bill to remove basic
human rights in NZ

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Mark Foster
2011-09-29 21:29:53 UTC
Permalink
Post by Robin Paulson
hi all,
i set up a blog last night, together with a domain i bought. the blog
is wordpress and hosted on the same ubuntu lucid server as two other
websites i run.
if i type in the domain name, it goes to the site correctly, and the
http://universitywithoutconditions.ac.nz/
however, if i hover over a link to a sub-page, say 'About', it gives
https://bumblepuppy.org/uwc_ac_nz/?page_id=11
can anyone suggest what i've done wrong?
i'm guessing it's something wrong in httpd.conf
the other site on that server reports the domain name correctly
Wordpress has been told what its own root-domain address is? The link to
'About' is built by the CMS and if it's not relative-path, it can only
be getting that URL from somewhere you've configured... ?

Caveat: Ive never used Wordpress. Drupal behavior is what i'm basing
this logic on ;-)

Mark.

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
David L Neil
2011-09-29 21:47:37 UTC
Permalink
Post by Mark Foster
Post by Robin Paulson
hi all,
i set up a blog last night, together with a domain i bought. the blog
is wordpress and hosted on the same ubuntu lucid server as two other
websites i run.
if i type in the domain name, it goes to the site correctly, and the
http://universitywithoutconditions.ac.nz/
however, if i hover over a link to a sub-page, say 'About', it gives
https://bumblepuppy.org/uwc_ac_nz/?page_id=11
can anyone suggest what i've done wrong?
i'm guessing it's something wrong in httpd.conf
the other site on that server reports the domain name correctly
Wordpress has been told what its own root-domain address is? The link to
'About' is built by the CMS and if it's not relative-path, it can only
be getting that URL from somewhere you've configured... ?
Caveat: Ive never used Wordpress. Drupal behavior is what i'm basing
this logic on ;-)
Similar thoughts: Apache redirect or .htaccess file not in place?
--
Regards,
=dn

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
r***@webworxshop.com
2011-09-29 21:54:43 UTC
Permalink
Post by David L Neil
Post by Mark Foster
Post by Robin Paulson
hi all,
i set up a blog last night, together with a domain i bought. the blog
is wordpress and hosted on the same ubuntu lucid server as two other
websites i run.
if i type in the domain name, it goes to the site correctly, and the
http://universitywithoutconditions.ac.nz/
however, if i hover over a link to a sub-page, say 'About', it gives
https://bumblepuppy.org/uwc_ac_nz/?page_id=11
can anyone suggest what i've done wrong?
i'm guessing it's something wrong in httpd.conf
the other site on that server reports the domain name correctly
Wordpress has been told what its own root-domain address is? The link to
'About' is built by the CMS and if it's not relative-path, it can only
be getting that URL from somewhere you've configured... ?
Caveat: Ive never used Wordpress. Drupal behavior is what i'm basing
this logic on ;-)
Similar thoughts: Apache redirect or .htaccess file not in place?
No, I think this is in the Wordpress settings. There is definitely a
setting for this, which may not be filled in by default.

That said, did you set the ServerName option in the vhost correctly?

Rob


_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Robin Paulson
2011-09-29 21:58:21 UTC
Permalink
Post by r***@webworxshop.com
No, I think this is in the Wordpress settings. There is definitely a
setting for this, which may not be filled in by default.
it is! thanks for that.
Post by r***@webworxshop.com
That said, did you set the ServerName option in the vhost correctly?
yes, i'd already set that.

cheers for the help folks, fixed now
--
robin

http://bumblepuppy.org/blog/?p=237 - government bill to remove basic
human rights in NZ

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Loading...