i want to make main blog accessible from wpmu.localhost in addition to its external, main domain. that would be good for security.
i want to make main blog accessible from wpmu.localhost in addition to its external, main domain. that would be good for security.
Hmmmmm..... Ok, I'll take the bait. Why?
i think that is possible with apache's mod_proxy.
i now have made this but it does not work:
<VirtualHost *:80>
ServerName wpmu.localhost
ProxyPass / http://domain.tld/
ProxyPassReverse / http://domain.tld/
ProxyPassReverseCookieDomain wpmu.localhost domain.tld
#ProxyPassReverseCookieDomain domain.tld wpmu.localhost
</VirtualHost>
(also i enabled mod_proxy before that and reloaded apache configuration after modifying that.)
"Ok, I'll take the bait. Why? " - i do not understand this.
"that would be good for security" - why would it be good for security?
this is installed on local machine. and also that would save traffic (network).
"(also i enabled mod_proxy before that and reloaded apache configuration after modifying that.)"
also i had written 127.0.0.1 wpmu.localhost in /etc/hosts .
i have asked about this in #apache channel in irc.freenode.net . and am going to ask in #wordpress .
[by the way] irc://irc.freenode.net/apache address in "href" does not work in this web-forum.
i am adding: just writing the address has worked!
and again i add: (there is "Allowed markup: a blockquote code em strong ul ol li. " now.)
solved. also should load mod_proxy_http and should write <proxy> block with "Allow from all" in wpmu.localhost vhost. i have got help in the #apache channel by DrBacchus.
but that does not work completely as needed, because it redirects and makes links to domain.tld .
i cannot go to wpmu.localhost/wp-admin/ , because logging in does not set cookie to wpmu.localhost , i think. may be i should try to set cookie manually, if it is possible with the browser or other browser.
english language question:
is not it more correct to say that i have said this way:
"i have got help in the A channel from B."
Sorry, how would it save on traffic? If you add your external domain name into your internal DNS system then you dont need to do anything clever at all.
That is what I do with the server that is sitting here in my house.
yes.. i do not run bind nor other dns but i probably simply can write 127.0.0.1 domain.tld in /etc/hosts . thank you.
i add at 20:05 gmt: [but] /etc/hosts file is also a domain name system's part/element.
solved. it works.