Re: loading shop.example.com in www.test.com/shop/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





El jue, 3 ago 2023 a las 22:33, Marc (<Marc@xxxxxxxxxxxxxxxxx>) escribió:
I was wondering if it is even possible to publish an existing shop hosted on the subdomain shop.example.com and show it as a 'folder' in www.test.com/shop. Will I have problems with browsers (cookies?). I don't want to resolve this on the file system because both have different uid/gids on files.


You can just Alias /shop/ /path/to/documentrootof/shop.example.com/

 From the http server side, there are a few ways to do it, Alias, internal redirects, reverse proxy. 

As per "cookies" that's another thing entirely related to the application not the http server itself. 

If you need you can try to tweak them with the help of mod_headers module or perhaps reverse proxy from one place to another and try to tweak with mod_proxy directives ProxyPassReverseCookieDomain and PRoxyPassReverseCookiePath. What it is for sure is you have low chances of getting away without paying close attention to the behaviour from your application.


--
Daniel Ferradal
HTTPD Project
#httpd help at Libera.Chat

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux