Tag Info

New answers tagged

0

did it my self using Location <Location /contact/login-here> Options Indexes FollowSymLinks MultiViews AllowOverride None Order deny,allow deny from all Allow from subnet-ip </Location> this will mean URL http://mywebserver.com/contact/login-here is viewable only locally.


0

Try this: <VirtualHost *:80> ServerAdmin webmaster@domain.com ServerName domain.com ServerAlias www.domain.com DocumentRoot /var/www/domain.com/public_html <Directory /var/www/domain.com/public_html> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny ...


3

The best way is to create one ErrorDocument per page, but redirect all errors to the same page. This gives you the dynamic part that you want while you still can change easily that configuration at any time reassigning a new ErrorDocument for specific cases. Then on that page, you can configure different processes or responses, depending on the ...


0

I would use cookie for this on *.domain.com. Special cookie value (let's say lang) should only be set if user clicks on any of the flags. Now on www.domain.com when routing users to localized websites you first check if cookie with lang value is set, if so, you redirect to a page with lang specified in the cookie. If, however, such cookie would not exist, ...


0

It depends how your domain is configured. If it is in /etc/apache2/sites-enabled/000-default or (domain.com in same directory) file, then edit that file. Otherwise it will be in /etc/apache2/apache2.conf file. Find ServerName domain.com directive and add this line below that: ServerAlias www.domain.com This will make alias also work for same domain. For ...


3

Simple answer. Hosts provide what is asked for and works best. It is a double-sided coin. Apache has been extremely successful and is stable and seasoned code therefore hosts don't have to work hard to support it. As you may know, Apache is one of the first successful web servers and serves the vast majority of web installations therefore it is asked for the ...


0

I do not know how you have your network setup, however, I am assuming somethings to try and make a better answer. Let's assume you have a have a small office with a DSL connection. You would have a static public IP address or a block of addresses assigned to your line, a DSL modem, and a firewall. Without getting into the details of how this happens, I will ...



Top 50 recent answers are included