Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chrisjscott

    (@chrisjscott)

    @rwanwork

    I’ll be darned that was it! Specifically, this needed to be placed within the virtualhost config for blog.myDomain contained within the myDomain-le-ssl.conf file (I’m using Let’s Encrypt for SSL).

    THANK YOU!!!

    Thread Starter chrisjscott

    (@chrisjscott)

    I’m wondering if my directives might be messed up…

    My /etc/apache2/sites-available/myDomain.conf contains:

    ServerAdmin webmaster@localhost
    ServerName blog.myDomain
    DocumentRoot /var/www/myDomain/blog
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    RewriteEngine on
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

    While /etc/apache2/sites-available/myDomain-le-ssl.conf contains:

    ServerAdmin webmaster@localhost
    ServerName blog.myDomain
    DocumentRoot /var/www/myDomain/blog
    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/access.log "combined"
    
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/myDomain/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/myDomain/privkey.pem
    LogLevel crit

    I tried adding RewriteEngine on to the latter config file; made no difference…

    • This reply was modified 1 year, 10 months ago by chrisjscott.
    Thread Starter chrisjscott

    (@chrisjscott)

    Hey, @rwanwork – appreciate the reply and a good suggestion. Unfortunately, it looks like my Module rewrite already enabled

    Thread Starter chrisjscott

    (@chrisjscott)

    One quick follow-up:

    I upped the log level in my Apache error log and found the following being generated when I try to open a page:

    AH00128: File does not exist: /var/www/myDomain/blog/PostName/, referer: https://blog.myDomain/

    This suggest to me that the Rewrite commands being added to .htaccess aren’t working as expected…?

    Using wget results in file dumps in your home folder every time the cron job is run. Instead, consider using:

    lynx -dump <URL>

    Thread Starter chrisjscott

    (@chrisjscott)

    FWIW, I’ve come to realize that this isn’t a AD Integration issue but, rather, a Buddypress issue. BP’s code for “syncing” its profiles with WordPress user accounts only looks at the username field.

    I’m pretty sure that the key is to modify the xprofile_sync_bp_profile() function (found in wordpress/wp-content/plugins/buddypress/bp-xprofile.php) but I have yet to figure out how to do it.

Viewing 6 replies - 1 through 6 (of 6 total)