qlaffont
(Quentin Laffont)
October 24, 2017, 6:52am
1
Hi everyone,
I want to make subfolder rooting for a specified website.
Actually it’s my configuration :
mywebsite.com {
root /caddy/mywebsite
gzip
fastcgi / /var/run/php5-fpm.sock php
header / {
Cache-Control "max-age=86400"
}
header /wp-admin {
Cache-Control no-cache
}
}
now i want to do :
mywebsite.com {
root /caddy/mywebsite
gzip
fastcgi / /var/run/php5-fpm.sock php
header / {
Cache-Control "max-age=86400"
}
header /wp-admin {
Cache-Control no-cache
}
//New Part
/craft/*{
root /caddy/mywebsite/craft
}
//Ipboard forum
/forum/*{
root /caddy/mywebsite/forum
}
}
But it’s not working. How i can solve this issue ? After that i want to know if I need a configuration to host IPBoard forum or not ?
Thanks for answers ^^.
Regards
Quentin
Hi @qlaffont ,
If simply structuring your web directory such that /forum
is at /path/to/webroot/forum
and /craft
is at /path/to/webroot/craft
etc. is impossible, you can define additional site labels like so:
example.com {
root /path/to/webroot
}
example.com/folder {
root /path/to/folder
}
example.com/forum {
root /path/to/forum
}
You will have to repeat your site definition for each block, though (things like gzip
, fastcgi
, and header
from your Caddyfile above).
qlaffont
(Quentin Laffont)
October 24, 2017, 7:03am
3
Thanks, i will try. Do you have any info about IPBoard configuration with Caddy ?
No, sorry, but Invision Community software only requires PHP and MySQL, so Caddy should be able to handle it just like any other PHP site.
system
(system)
Closed
January 22, 2018, 8:51am
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.