The MU forums have moved to WordPress.org

i want to make main blog accessible also from wpmu.localhost (15 posts)

  1. qdinar
    Member
    Posted 14 years ago #

    i want to make main blog accessible from wpmu.localhost in addition to its external, main domain. that would be good for security.

  2. cafespain
    Member
    Posted 14 years ago #

    Hmmmmm..... Ok, I'll take the bait. Why?

  3. qdinar
    Member
    Posted 14 years ago #

    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.

  4. cafespain
    Member
    Posted 14 years ago #

    "that would be good for security" - why would it be good for security?

  5. qdinar
    Member
    Posted 14 years ago #

    this is installed on local machine. and also that would save traffic (network).

  6. qdinar
    Member
    Posted 14 years ago #

    "(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 .

  7. qdinar
    Member
    Posted 14 years ago #

    i have asked about this in #apache channel in irc.freenode.net . and am going to ask in #wordpress .

  8. qdinar
    Member
    Posted 14 years ago #

    [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.)

  9. qdinar
    Member
    Posted 14 years ago #

    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.

  10. qdinar
    Member
    Posted 14 years ago #

    but that does not work completely as needed, because it redirects and makes links to domain.tld .

  11. qdinar
    Member
    Posted 14 years ago #

    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.

  12. qdinar
    Member
    Posted 14 years ago #

    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."

  13. SteveAtty
    Member
    Posted 14 years ago #

    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.

  14. qdinar
    Member
    Posted 14 years ago #

    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.

  15. qdinar
    Member
    Posted 14 years ago #

    solved. it works.

About this Topic