Forum Replies Created

Viewing 61 replies (of 61 total)
  • Thread Starter gregscott

    (@gregscott)

    Aw nuts – Let me try to post those config files again. This time clicking the “code” button and maybe the indents will work.

    First, wordpress.conf (in /etc/httpd/conf.d)

    [root@webf18 conf.d]# more wordpress.conf
    Alias /wordpress /usr/share/wordpress
    
    <Directory /usr/share/wordpress>
    ##  AllowOverride Options
      AllowOverride All
      <IfModule mod_authz_core.c>
        # Apache 2.4
        Require local
        Require ip 10.10.10
      </IfModule>
      <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order Deny,Allow
        Deny from All
        Allow from 127.0.0.1
        Allow from ::1
     </IfModule>
    </Directory>
    
    <Directory /usr/share/wordpress/wp-content/plugins/akismet>
      <FilesMatch "\.(php|txt)$">
        Order Deny,Allow
        Deny from all
      </FilesMatch>
    </Directory>

    Now infrasupport.conf (also in /etc/httpd/conf.d)

    [root@webf18 conf.d]# more infrasupport.conf
    <VirtualHost www.infrasupport.local:80>
        ServerAdmin gregscott@infrasupport.com
        DocumentRoot /usr/share/wordpress/index.php
        ServerName www.infrasupport.local:80
    ##    ErrorLog  "/usr/share/wordpress/logs/error_log.log"
    ##    CustomLog "/usr/share/wordpress/logs/access_log.log" combined
    
    Alias /wordpress /usr/share/wordpress
    
    <Directory /usr/share/wordpress>
    ##  AllowOverride Options
      AllowOverride All
      <IfModule mod_authz_core.c>
        # Apache 2.4
        Require local
        Require ip 10.10.10
      </IfModule>
      <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order Deny,Allow
        Deny from All
        Allow from 127.0.0.1
        Allow from ::1
     </IfModule>
    </Directory>
    
    </VirtualHost>

    thanks

    – Greg Scott

Viewing 61 replies (of 61 total)