Obsolete Releases > SME 8.x Contribs

custom template help needed for hosts file / wordpress

<< < (7/8) > >>

calisun:
My work-around that I have posted earlier does not work, it has to be done in a custom-template to make it work.
It took me a while, but I got it figured out what to change and how to create a custom-template for this issue. I will be updating my wordpress "how to" soon, and I will post a notice here when I am done.

janet:
newburns

I renamed .../ibays/ibayname/files to /files-orig and then created .../ibays/ibayname/html/files folder, put a simple index file in that folder and it was accessible using the domain name I pointed at that ibay (in teh Domains panel), in the form
domainname.com/files

I moved an older single site version of wordpress from /opt (and upgraded it to the latest) into an ibay & it is accessible using a virtual domain name and works fine.

You seem to have unusual problems

newburns:
I have a multisite version. Also, I have many plugins that have altered my .htaccess file such as W3TC, a cs and js minifier, as well as some others for page speed.
I'm not sure if that's why the workaround doesn't work for me, but I believe it has something to do with the new domain listed under Server-Manager. That's the only variable that's different.
Why else does it work for the main domain, but not the other domains?
Where is the template to look into /"ibay"/files anytime http://domain.tld/files is requested?
And how can the .htaccess rewrite be called before the request is sent to /ibays/files?
Also, it seems that anything in httpd.conf gets called first. Should I transfer my .htaccess to httpd.conf?

janet:
newburns


--- Quote ---Where is the template to look into /"ibay"/files anytime http://domain.tld/files is requested?
--- End quote ---

If you made a little more effort.

I'm sure you know that templates are in
/etc/e-smith/templates

and all httpd.conf template fragments are in
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/

So then by taking a little look around you find
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/20IbayContent

It appears to have aliases eg for the ibay files folder
Whether it's what you want I'm not sure, so try changing it (in a custom template).

Also take a look at:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays

calisun:
I have updated my step-by-step how-to for installing wordpress in an iBay.
I believe I made it clearer than before and I gave instructions on creating custom templates to fix couple of issues.
see it here:
http://wiki.contribs.org/User_talk:Calisun

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version