You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Arnold <ca...@electrichendrix.com> on 2011/11/25 18:40:20 UTC
[users@httpd] Getting blog.domain.com instead of domain.com/blog
I am not sure if this is an apache issue or not but i thought i ask and see what the experts thought.
I have a WP blog at domain.com/blog. I want to have people access the blog by blog.domain.com. I have public dns entries for blog.domain.com that point back to the public ip but this does not return the desired results. I created a virtualhost and give the serveralias blog.domain.com and the correct directory and get page not found. Nothing shows in the error log. Thanks for any help
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Getting blog.domain.com instead of domain.com/blog
Posted by Chris Arnold <ca...@electrichendrix.com>.
>It was thus said that the Great Chris Arnold once stated:
There is only One Great and it is not me...
> I am not sure if this is an apache issue or not but i thought i ask and
> see what the experts thought. I have a WP blog at domain.com/blog. I want
> to have people access the blog by blog.domain.com. I have public dns
> entries for blog.domain.com that point back to the public ip but this does
> not return the desired results. I created a virtualhost and give the
> serveralias blog.domain.com and the correct directory and get page not
> found. Nothing shows in the error log. Thanks for any help
>If you can control the actual Apache configuration file, you might try how
>I do it:
Yes, i control the config file
><VirtualHost 66.252.224.242:80>
> ServerName www.boston.conman.org
> CustomLog /home/spc/web/logs/www.boston.conman.org combined-deflate
> Redirect permanent / http://boston.conman.org/
></VirtualHost>
><VirtualHost 66.252.224.242:80>
> ServerName boston.conman.org
> ServerAdmin sean@conman.org
> DocumentRoot /home/spc/web/sites/boston.conman.org/htdocs
> # rest of configuration ... not germane to the issue
></VirtualHost>
> I had a few people think my blogs at <http://www.boston.conman.org/> when
>no, it's at <http://boston.conman.org/>. This also tells the various search
>engine indexers that the preferred site is boston.conman.org.
Isn't the above config basically the same as ours:
<VirtualHost *:80>
ServerName domain.com
ServerAdmin email
DocumentRoot path/to/web/sites
</VirtualHost>
blog.domain.com works on the local LAN but not outside the LAN. I know it is allowed through the firewall as domain.com/blog works fine. The domain is registered at godaddy and there has been a cname created that points to the public ip.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Getting blog.domain.com instead of domain.com/blog
Posted by Sean Conner <sp...@conman.org>.
It was thus said that the Great Chris Arnold once stated:
> I am not sure if this is an apache issue or not but i thought i ask and
> see what the experts thought. I have a WP blog at domain.com/blog. I want
> to have people access the blog by blog.domain.com. I have public dns
> entries for blog.domain.com that point back to the public ip but this does
> not return the desired results. I created a virtualhost and give the
> serveralias blog.domain.com and the correct directory and get page not
> found. Nothing shows in the error log. Thanks for any help
If you can control the actual Apache configuration file, you might try how
I do it:
<VirtualHost 66.252.224.242:80>
ServerName www.boston.conman.org
CustomLog /home/spc/web/logs/www.boston.conman.org combined-deflate
Redirect permanent / http://boston.conman.org/
</VirtualHost>
<VirtualHost 66.252.224.242:80>
ServerName boston.conman.org
ServerAdmin sean@conman.org
DocumentRoot /home/spc/web/sites/boston.conman.org/htdocs
# rest of configuration ... not germane to the issue
</VirtualHost>
I had a few people think my blogs at <http://www.boston.conman.org/> when
no, it's at <http://boston.conman.org/>. This also tells the various search
engine indexers that the preferred site is boston.conman.org.
-spc
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Getting blog.domain.com instead of domain.com/blog
Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----
> I am not sure if this is an apache issue or not but i thought i ask
> and see what the experts thought.
> I have a WP blog at domain.com/blog. I want to have people access the
> blog by blog.domain.com. I have public dns entries for
> blog.domain.com that point back to the public ip but this does not
> return the desired results. I created a virtualhost and give the
> serveralias blog.domain.com and the correct directory and get page
> not found. Nothing shows in the error log. Thanks for any help
Redirects in httpd are accomplished with either
Redirect, or sadly, some people also use the muddy [R] from
mod_rewrite (and implicit mod_rewrite Redirect can also be caused
by adding http:// or https:// to the Target or the rewrite)
If you have any of these in your config or in your .htaccess
then it's httpd's doing. If not, WP is the cuprit.
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org