Tag Info

New answers tagged

1

Here is an .htaccess option for you: RewriteEngine On RewriteCond %{HTTP_HOST} ^10\.0\.11\.101$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R,L] ...obviously, you will need to change the IP address and domain name to suit your needs. This should redirect any IP based reference to the domain name.


0

Easy. Just set something like this within your main configuration or your virtual configuration: <Directory /var/www/path/to/your/web/documents> Order Deny,Allow Deny from all Allow from 127.0.0.1 ::1 Allow from localhost Allow from 192.168 Allow from 10 Satisfy Any </Directory> The <Directory></Directory> statement ...


0

Add this section inside your virtual host directive: <Location /mypathurl> Order deny,allow Deny from all Allow from 192.168.1.10 </Location> Replace your IP above. This should not be used for financial level security, FYI.


0

Request headers can cause the size of responses to vary. For example if the requesting device or browser allows for Gzip encoding they will let your webserver know that they want the content in gzip format which is a lot smaller. Also pages which are dynamically generated can vary in size. In your example you have /api/. Unless if your api is pumping out ...


0

The typical way to host a new domain or subdomain under Ubuntu/Debian is covered in this tutorial. Here are the basic steps: Create the file /etc/apache2/sites-available/owncloud.example.com.conf with contents based on this template: <VirtualHost *> ServerAdmin webmaster@example.com ServerName owncloud.example.com ...



Top 50 recent answers are included