apache 2.4 – .htaccess to inherit access control from VirtualHost

I have an info.php containing PHP information about the system file in the root of my web directory and I have protected it using a .htaccess and .htpasswd file.

/var/www/example.com/.htaccess

AuthType Basic
AuthBasicProvider file
AuthName "Authentication Required"
AuthUserFile "/etc/phpmyadmin/.htpasswd"
Require valid-user
</Files>

While I work on my site I have restricted the access to only allow access from my private DDNS linked to my public IP address as shown as myddns.com in the example config below.

/etc/apache2/sites-enabled/example.com

<VirtualHost *:80>
    ServerName example.com
    ServerAlias www.example.com
    ServerAdmin webmaster@example.com
    DocumentRoot /var/www/example.com
    RewriteEngine On
    RewriteCond %{HTTP_HOST} example.com (NC)
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.example.com$1 (R,L)
    <Directory />
        DirectoryIndex index.html index.php
            <RequireAny>
                Require forward-dns myddns.com
            </RequireAny>
        AllowOverride All
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined    
</VirtualHost>

<VirtualHost *:443>
    ServerName example.com
    ServerAlias www.example.com
    ServerAdmin webmaster@example.com
    DocumentRoot /var/www/example.com
    <Directory />
        DirectoryIndex index.html index.php
            <RequireAny>
                Require forward-dns myddns.com
            </RequireAny>
        AllowOverride All
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLEngine On
    SSLCertificateFile "/etc/ssl/certs/example.com.crt"
    SSLCertificateKeyFile "/etc/ssl/private/example.com.key"
    SSLCertificateChainFile "/etc/ssl/certs/example.com.ca-bundle"
</VirtualHost>

I have tested access to the main FQDN example.com and I am presented with a “forbidden access” as expected. However, going to example.com/info.php bypasses

<RequireAny>
        Require forward-dns myddns.com
</RequireAny>

but still asks for the password at least. Rather having to enter myddns into both the VirtualHost and the .htaccess file, is there a way I can get the .htaccess file to inherit any rules specified in the VirtualHost and then as an extra layer of security still ask for the password?

Specifying both

Require valid-user
Require host myddns.com

doesn’t work in series and instead seems to ignore the valid-user property altogether.

hard drive – macOS Catalina not allowing me to access full storage on my disc

My hard drive has around 90 GB on it, however Mac is only letting me access/detecting around 40, yet still somehow seeing that there are almost 90 available. I have tried googling around, however most issues seem to be related to the Mac incorrectly calculating the available space but still reading the correct total capacity. Has anyone encountered this issue before? enter image description here

Edit: After running df -h it appears my disk is partitioned into multiple partitions. Adding up their sizes equals the correct 87 GB, however, each of them have only 40-50% capacity.

root access – How to remove Messages app for SMS from Android 10 Wiko View 4 phone?

I want to remove the default messages application called Messages which handles sms sending and receiving from my Wiko View 4 Android 10 device.

The reason I am wishing to uninstall this app is that I deem some of the content in this app inappropriate.

Can I install SuperSU or something to root the device and then remove this app?

Is there some other way to remove it?

Is there a way to remove it at all?

When I click on it I can only remove it from my home screen, but cannot uninstall it because the uninstall option to drag the app to in the screen is missing (only the remove place where to drag the icon appears).

If I remove the Messages app from the home screen, I still can see it in the list, if apps, when I scroll up on the home screen with my fingers to see all apps.

But I don’t want this app anywhere on my phone.

Thanks.

[WTS] Quality KVM VPS Hosting, VPSget.com – Full Root Access, 100Mbps, 99.9% Uptime, EU

///VPSGet has a vision of providing best quality services with affordable prices for each customer.
////We know how to cook virtual servers!

Get your VPS from VPSGet !
High Performance Enterprise Grade VPS with DDoS protection .

=============================================
30% LIFETIME DISCOUNT ON SSD KVM VPS PACKAGES.
Use promo code: SM30LIFEKVZ
=============================================

Our servers are located at Tier III datacenter in Netherlands, Europe .
Test IP: 213.108.198.4 . Test download files : 100Mb, 1Gb

KVM VPS Features :
• Full Root Access
• VNC feature
Custom ISO available
• 10Gbit/s anti-DDoS WorldShield
• Redundant Network
• Redundant Pure SSD RAID-10 protected storage (gr8 IOPS perfomance)
• Configurable storage amount
• 2x Intel Xeon E5 processors per server node.
Virtualizer Control Panel: separate access to manage only VPS services.
• Additional discounts on quarterly, annually, or longer billing cycles.
• Monthly Full KVM VPS img backups on external storage included in all packages.
• Easy to use ClientArea: manage your account and services from one place.
• Free Managed Support. *
• 100Mbps or more connection for each VPS (multiple uplinks on each node)
• Free IPv6
• 99.9% Uptime Guarantee
• 30 days Money Back Guarantee
• Instant Setup
• No Contract
• 24×7 Standart Managed Support
Many Payments methods available:Paypal, Credit/Debit cards, 2checkout, Webmoney/Paymentwall, BankWire, Bitcoin, Coinpayments.

____________________________
KVM VPS Packages:

KVM-1
$4.50 per month | use PROMO SM30LIFEKVZ
1 CPU Core
1 GB RAM
20+ GB SSD (configurable)
100Mbps connection
30 Day Money Back Guarantee
500GB BW
10Gbit/s DDoS protected
managed support
More Info/Compare

KVM-2
$8.40 per month | use PROMO SM30LIFEKVZ
2 CPU Core
2 GB RAM
30+ GB SSD (configurable)
100Mbps dedicated connection
30 Day Money Back Guarantee
1TB BW
10Gbit/s DDoS protected
additional IPv4 available
managed support
More Info/Compare

KVM-4
$15.40 per month | use PROMO SM30LIFEKVZ
4 CPU Cores
4 GB RAM
40+ GB SSD (configurable)
100Mbps dedicated connection
30 Day Money Back Guarantee
2TB BW
10Gbit/s DDoS protected
additional IPv4 available
managed support
More Info/Compare

KVM-8
$24.50 per month | use PROMO SM30LIFEKVZ
8 CPU Cores
8 GB RAM
50+ GB SSD (configurable)
100Mbps dedicated connection
30 Day Money Back Guarantee
3TB BW
additional IPv4 available
managed support
More Info/Compare

KVM-16
$38.50 per month | use PROMO SM30LIFEKVZ
16 CPU Cores
16 GB RAM (configurable)
60+ GB SSD (configurable)
150Mbps dedicated connection
30 Day Money Back Guarantee
4TB BW
10Gbit/s DDoS protected
additional IPv4 available
managed support
More Info/Compare

The promo code SM30LIFEKVZ also applicable to our Pure SSD OpenVZ7 VPS Packages:
https://vpsget.com/ssd-vps-europe.php

—————————-

Should you have any pre-sales questions please do not hesitate to contact our Team!

.(tagsToTranslate)webmaster forum(t)internet marketing(t)search engine optimization(t)web designing(t)seo(t)ppc(t)affiliate marketing(t)search engine marketing(t)web hosting(t)domain name(t)social media

configuration – How can I configure an isolated LAN network with no access to the internet?

i’m a noob trying to learn more about server and network configuration. I have a few laptops laying around that I want to turn into servers, I want to isolate these servers on an internal LAN network so that they can communicate with each other but not communicate outside of that isolated network on their own. I want to be able to use a laptop that’s on the parent network to be able to communicate in and access these servers. I’ve drawn a diagram of what I mean which may clarify things. Would I need some sort of gateway into that network? Another laptop? What are some good resources to learn how to do something like that? Have I got a flawed mental picture and this setup is not possible?

root access – How do I create a new route table on rooted Android?

On Linux I can type something like echo 202 my_table >> /etc/iproute2/rt_tables and voila, I can use my_table in commands like ip route add 1.1.1.1 dev eth0 table my_table.

But my rooted Android phone doesn’t have /etc/iproute2. And even if I create this directory (mkdir -p /etc/iproute2/), then echo 202 my_table >> /etc/iproute2/rt_tables and run ip route add 1.1.1.1 dev eth0 table my_table I get :

Error: argument "my_table" is wrong: "table" value is invalid

How to create and delete route tables on Android?

apache – How do I keep my site invisible to the public until I am ready to publish it, but still have access to develop it?

I’m relatively new to website design and need help.

I am creating a website and it is very important that the page does not become available to the public until it is fully created, something that will definitely take time. These are the steps I have taken and what is not working:

  • I created a test subdirectory.

  • I password protected it with “Directory Privacy” and created a user and password.

  • I uploaded a theme.

  • Got a message that I needed to overwrite the .htaccess file to upload the theme.

  • Finding no way around it, I did.

  • Found I had to reset the password protection via “Directory Privacy”.

  • Was able to log into sitepad and edit site with password I had just set.

  • Site was visible at domain name when I logged out, even after I cleared my cookies-exactly what I did NOT want.

  • Logged in, followed my hosting site’s directions and set “permissions” to 700, instead of 750.

  • Was unable to log in to edit the site.

  • Site no longer accessible to the world, but also inaccessible to me for creation purposes.

What am I doing wrong? What is the way around this?

windows 10 – How do I setup access to shared folders using certificates?

I have a simple home network with several computers.
While connected to the home network I want my work laptop to have access to shares in other computers, but I don’t want to save my home credentials in the work computer.

How can I setup access using a certificates in a similar way to ssh access with authorized_keys?
I.e. generate a certificate in the work computer and add it to the user account in the home computer.

Quality KVM VPS Hosting, VPSget.com – Full Root Access, 100Mbps, 99.9% Uptime, EU | Proxies123.com

///VPSGet has a vision of providing best quality services with affordable prices for each customer.
////We know how to cook virtual servers!

Get your VPS from VPSGet !
High Performance Enterprise Grade VPS with DDoS protection .

=============================================
30% LIFETIME DISCOUNT ON SSD KVM VPS PACKAGES.
Use promo code: SM30LIFEKVZ
=============================================

Our servers are located at Tier III datacenter in Netherlands, Europe .
Test IP: 213.108.198.4 . Test download files : 100Mb, 1Gb

KVM VPS Features :

• Full Root Access
• VNC feature
Custom ISO available
• 10Gbit/s anti-DDoS WorldShield
• Redundant Network
• Redundant Pure SSD RAID-10 protected storage (gr8 IOPS perfomance)
• Configurable storage amount
• 2x Intel Xeon E5 processors per server node.
Virtualizer Control Panel: separate access to manage only VPS services.
• Additional discounts on quarterly, annually, or longer billing cycles.
• Monthly Full KVM VPS img backups on external storage included in all packages.
• Easy to use ClientArea: manage your account and services from one place.
• Free Managed Support. *
• 100Mbps or more connection for each VPS (multiple uplinks on each node)
• Free IPv6
• 99.9% Uptime Guarantee
• 30 days Money Back Guarantee
• Instant Setup
• No Contract
• 24×7 Standart Managed Support
Many Payments methods available:Paypal, Credit/Debit cards, 2checkout, Webmoney/Paymentwall, BankWire, Bitcoin, Coinpayments.

____________________________
KVM VPS Packages:

KVM-1
$4.50 per month | use PROMO SM30LIFEKVZ
1 CPU Core
1 GB RAM
20+ GB SSD (configurable)
100Mbps connection
30 Day Money Back Guarantee
500GB BW
10Gbit/s DDoS protected
managed support
More Info/Compare

KVM-2
$8.40 per month | use PROMO SM30LIFEKVZ
2 CPU Core
2 GB RAM
30+ GB SSD (configurable)
100Mbps dedicated connection
30 Day Money Back Guarantee
1TB BW
10Gbit/s DDoS protected
additional IPv4 available
managed support
More Info/Compare

KVM-4
$15.40 per month
| use PROMO SM30LIFEKVZ
4 CPU Cores
4 GB RAM
40+ GB SSD (configurable)
100Mbps dedicated connection
30 Day Money Back Guarantee
2TB BW
10Gbit/s DDoS protected
additional IPv4 available
managed support
More Info/Compare

KVM-8
$24.50 per month | use PROMO SM30LIFEKVZ
8 CPU Cores
8 GB RAM
50+ GB SSD (configurable)
100Mbps dedicated connection
30 Day Money Back Guarantee
3TB BW
additional IPv4 available
managed support
More Info/Compare

KVM-16
$38.50 per month
| use PROMO SM30LIFEKVZ
16 CPU Cores
16 GB RAM (configurable)
60+ GB SSD (configurable)
150Mbps dedicated connection
30 Day Money Back Guarantee
4TB BW
10Gbit/s DDoS protected
additional IPv4 available
managed support
More Info/Compare

The promo code SM30LIFEKVZ also applicable to our Pure SSD OpenVZ7 VPS Packages:

—————————-

Should you have any pre-sales questions please do not hesitate to contact our Team!