version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 author=miniontoby charset=UTF-8 csum=added credits ctime=1597537582 host=77.168.188.164 name=Openbsd.Pmwiki rev=14 targets= text=pmwiki is a 2 step install. It's on the official pmwiki page, there's not that much to do.%0a%0aTo change the password prompt page, edit Site.AuthForm.%0a%0aTo create a password hash for https://example.com/index.php?n=SiteAdmin.AuthUser, run this command:%0a%0a[@%0a$ php-7.4 %0a%3c?php echo password_hash("PASSWORD", PASSWORD_BCRYPT); ?>%0a@]%0a%0aReplace PASSWORD with your real password.%0a%0a!! Clean url's %0a%0aIf you want clean url's you need to do the following (written by Miniontoby) %0a%0aChange your httpd.conf block for your wiki so it looks like:%0a[@%0aserver "wiki.example.com" {%0a listen on * port 80%0a location "/.well-known/acme-challenge/*" {%0a root "/acme"%0a request strip 2%0a }%0a location "*.php" {%0a fastcgi socket "/run/php-fpm.sock"%0a root "/htdocs/wiki.example.com"%0a }%0a directory {%0a index "index.php"%0a }%0a location match "/pub/(.*)" {%0a request rewrite "/pub/%251"%0a }%0a location match "/cookbook/(.*)" {%0a request rewrite "/cookbook/%251"%0a }%0a location match "/uploads/(.*)" {%0a request rewrite "/uploads/%251"%0a }%0a location match "/local/(.*)" {%0a request rewrite "/local/%251"%0a }%0a location match "/favicon.(.*)" {%0a request rewrite "/favicon.%251"%0a }%0a location match "/(.*)/(.*)" {%0a request rewrite "/pmwiki.php?n=%251.%252?$QUERY_STRING"%0a }%0a location match "/(.*)" {%0a request rewrite "/pmwiki.php?n=%251?$QUERY_STRING"%0a }%0a connection max request body 104857600%0a}%0a@]%0a%0aand edit your /var/www/htdocs/pmwiki/local/config.php:%0a[@$EnablePathInfo = 1; //for enabling automatic use%0a$ScriptUrl = 'https://wiki.example.com'; //for the homepage%0a$PubDirUrl = 'https://wiki.example.com/pub'; //for the pub dir%0a$UploadDir = "/var/www/htdocs/pmwiki/uploads"; //for the upload dir (plz make it firstly if not exist)%0a$UploadUrlFmt = "https://wiki.example.com/uploads"; //for upload dir on the wiki@]%0a%0a!! Mirroring%0a%0aWhen mirroring, make sure to delete:%0a%0a[@%0alocal/config.php%0awiki.d/SiteAdmin.AuthUser%0a@]%0a time=1634220888 author:1634220888=miniontoby csum:1634220888=added credits diff:1634220888:1632320745:=16c16%0a%3c If you want clean url's you need to do the following (written by Miniontoby) %0a---%0a> If you want clean url's you need to do the following (which I (Miniontoby) didn't really wanted to share) %0a host:1634220888=77.168.188.164 author:1632320745=miniontoby csum:1632320745=smarter diff:1632320745:1632320367:minor=36c36%0a%3c location match "/cookbook/(.*)" {%0a---%0a> location "/cookbook/*" {%0a39c39%0a%3c location match "/uploads/(.*)" {%0a---%0a> location "/uploads/*" {%0a42c42%0a%3c location match "/local/(.*)" {%0a---%0a> location "/local/*" {%0a45,46c45,46%0a%3c location match "/favicon.(.*)" {%0a%3c request rewrite "/favicon.%251"%0a---%0a> location "/favicon.jpg" {%0a> request rewrite "/favicon.jpg"%0a host:1632320745=77.168.188.164 author:1632320367=miniontoby csum:1632320367=updated the code diff:1632320367:1632320226:minor=21,25c21,27%0a%3c listen on * port 80%0a%3c location "/.well-known/acme-challenge/*" {%0a%3c root "/acme"%0a%3c request strip 2%0a%3c }%0a---%0a> listen on * port 8080%0a> root "/htdocs/pmwiki"%0a> directory index "pmwiki.php"%0a> location "/.well-known/acme-challenge/*" {%0a> root "/acme"%0a> request strip 2%0a> }%0a28d29%0a%3c root "/htdocs/wiki.example.com"%0a30,32d30%0a%3c directory {%0a%3c index "index.php"%0a%3c }%0a54d51%0a%3c connection max request body 104857600%0a host:1632320367=77.168.188.164 author:1632320226=miniontoby csum:1632320226=changed the httpd.conf adding to just the whole thing diff:1632320226:1628699195:=18c18%0a%3c Change your httpd.conf block for your wiki so it looks like:%0a---%0a> add to your httpd.conf wiki block%0a20,26c20,21%0a%3c server "wiki.example.com" {%0a%3c listen on * port 8080%0a%3c root "/htdocs/pmwiki"%0a%3c directory index "pmwiki.php"%0a%3c location "/.well-known/acme-challenge/*" {%0a%3c root "/acme"%0a%3c request strip 2%0a---%0a> location match "/pub/(.*)" {%0a> request rewrite "/pub/%251"%0a28,29c23,24%0a%3c location "*.php" {%0a%3c fastcgi socket "/run/php-fpm.sock"%0a---%0a> location match "/cookbook/(.*)" {%0a> request rewrite "/cookbook/%251"%0a31,32c26,27%0a%3c location match "/pub/(.*)" {%0a%3c request rewrite "/pub/%251"%0a---%0a> location match "/uploads/(.*)" {%0a> request rewrite "/uploads/%251"%0a34,35c29,30%0a%3c location "/cookbook/*" {%0a%3c request rewrite "/cookbook/%251"%0a---%0a> location match "/(.*)/(.*)" {%0a> request rewrite "/pmwiki.php?n=%251.%252?$QUERY_STRING"%0a37,38c32,33%0a%3c location "/uploads/*" {%0a%3c request rewrite "/uploads/%251"%0a---%0a> location match "/(.*)" {%0a> request rewrite "/pmwiki.php?n=%251?$QUERY_STRING"%0a40,52d34%0a%3c location "/local/*" {%0a%3c request rewrite "/local/%251"%0a%3c }%0a%3c location "/favicon.jpg" {%0a%3c request rewrite "/favicon.jpg"%0a%3c }%0a%3c location match "/(.*)/(.*)" {%0a%3c request rewrite "/pmwiki.php?n=%251.%252?$QUERY_STRING"%0a%3c }%0a%3c location match "/(.*)" {%0a%3c request rewrite "/pmwiki.php?n=%251?$QUERY_STRING"%0a%3c }%0a%3c }%0a host:1632320226=77.168.188.164 author:1628699195=jrmu diff:1628699195:1628699177:=48d47%0a%3c [@%0a50,51c49%0a%3c wiki.d/SiteAdmin.AuthUser%0a%3c @]%0a---%0a> wiki.d/iteAdmin.AuthUser%0a host:1628699195=38.87.162.8 author:1628699177=jrmu diff:1628699177:1628699173:= host:1628699177=38.87.162.8 author:1628699173=jrmu diff:1628699173:1614565409:=43,49d42%0a%3c %0a%3c !! Mirroring%0a%3c %0a%3c When mirroring, make sure to delete:%0a%3c %0a%3c local/config.php%0a%3c wiki.d/iteAdmin.AuthUser%0a host:1628699173=38.87.162.8 author:1614565409=jrmu diff:1614565409:1614565297:=9c9%0a%3c %3c?php echo password_hash("PASSWORD", PASSWORD_BCRYPT); ?>%0a---%0a> %3c?php echo password_hash("PASSWORD", PASSWORD_DEFAULT); ?>%0a host:1614565409=125.224.26.27 author:1614565297=jrmu diff:1614565297:1614565286:=12c12%0a%3c Replace PASSWORD with your real password.%0a---%0a> Replace PASSWORD with your rela password.%0a host:1614565297=125.224.26.27 author:1614565286=jrmu diff:1614565286:1609771974:=5,12d4%0a%3c To create a password hash for https://example.com/index.php?n=SiteAdmin.AuthUser, run this command:%0a%3c %0a%3c [@%0a%3c $ php-7.4 %0a%3c %3c?php echo password_hash("PASSWORD", PASSWORD_DEFAULT); ?>%0a%3c @]%0a%3c %0a%3c Replace PASSWORD with your rela password.%0a host:1614565286=125.224.26.27 author:1609771974=miniontoby csum:1609771974=Clean urls diff:1609771974:1600397456:=3,34c3%0a%3c To change the password prompt page, edit Site.AuthForm.%0a%3c %0a%3c %0a%3c !! Clean url's %0a%3c %0a%3c If you want clean url's you need to do the following (which I (Miniontoby) didn't really wanted to share) %0a%3c %0a%3c add to your httpd.conf wiki block%0a%3c [@%0a%3c location match "/pub/(.*)" {%0a%3c request rewrite "/pub/%251"%0a%3c }%0a%3c location match "/cookbook/(.*)" {%0a%3c request rewrite "/cookbook/%251"%0a%3c }%0a%3c location match "/uploads/(.*)" {%0a%3c request rewrite "/uploads/%251"%0a%3c }%0a%3c location match "/(.*)/(.*)" {%0a%3c request rewrite "/pmwiki.php?n=%251.%252?$QUERY_STRING"%0a%3c }%0a%3c location match "/(.*)" {%0a%3c request rewrite "/pmwiki.php?n=%251?$QUERY_STRING"%0a%3c }%0a%3c @]%0a%3c %0a%3c and edit your /var/www/htdocs/pmwiki/local/config.php:%0a%3c [@$EnablePathInfo = 1; //for enabling automatic use%0a%3c $ScriptUrl = 'https://wiki.example.com'; //for the homepage%0a%3c $PubDirUrl = 'https://wiki.example.com/pub'; //for the pub dir%0a%3c $UploadDir = "/var/www/htdocs/pmwiki/uploads"; //for the upload dir (plz make it firstly if not exist)%0a%3c $UploadUrlFmt = "https://wiki.example.com/uploads"; //for upload dir on the wiki@]%0a---%0a> To change the password prompt page, edit Site.AuthForm.%0a\ No newline at end of file%0a host:1609771974=145.132.146.30 author:1600397456=gry csum:1600397456=+ diff:1600397456:1597537605:=1,2d0%0a%3c pmwiki is a 2 step install. It's on the official pmwiki page, there's not that much to do.%0a%3c %0a host:1600397456=203.129.25.247 author:1597537605=jrmu diff:1597537605:1597537582:=1c1,3%0a%3c To change the password prompt page, edit Site.AuthForm.%0a\ No newline at end of file%0a---%0a> How do I change the password prompt screen?%0a> %0a> If your question is about how to make changes to that page... edit Site.AuthForm. If your question is about how to change which page you are sent to when prompted for a password, you might check out the Cookbook:CustomAuthForm for help.%0a\ No newline at end of file%0a host:1597537605=38.81.163.143 author:1597537582=jrmu diff:1597537582:1597537582:=1,3d0%0a%3c How do I change the password prompt screen?%0a%3c %0a%3c If your question is about how to make changes to that page... edit Site.AuthForm. If your question is about how to change which page you are sent to when prompted for a password, you might check out the Cookbook:CustomAuthForm for help. %0a\ No newline at end of file%0a host:1597537582=38.81.163.143