valid_referers none domain.com;
if ($invalid_referer) {
return 403;
}
This code works perfect with domain name, I need to change domain with IP address, how this possible?
valid_referers none domain.com;
if ($invalid_referer) {
return 403;
}
This code works perfect with domain name, I need to change domain with IP address, how this possible?
I have a set of Ricoh printers on a print server. When I want to deploy a new version of the driver, it erases the printing preferences of all users mapped to the queue share. Example, if someone uses locked printing and sets a pin with username as Windows Login Name, then after I update the driver and that update propagates down to the users from the print server, their print preferences are reset back to the default of Normal print with no pin and they have to setup their preferences all over again.
We use normal print by default and let users set locked printing if they want. Not everyone does.
Is there a way to preserve user printing preferences when updating print drivers on the print server? Or is this just not possible?
I have two repositories with one package "libtidy-dev":
$ apt-cache policy libtidy-dev
libtidy-dev:
Installed: 20091223cvs-1.2ubuntu1.1
Candidate: 1:5.2.0-1+deb.sury.org~trusty+1
Фиксатор пакета: 1:5.2.0-1+deb.sury.org~trusty+1
Version table:
1:5.2.0-1+deb.sury.org~trusty+1 400
500 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main amd64 Packages
*** 20091223cvs-1.2ubuntu1.1 400
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
20091223cvs-1.2ubuntu1 400
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
I want to set priority for package "libtidy-dev" of "ppa:ondrey/php" repository to 400. So I created /etc/apt/preferences.d/libtidy-dev.pref with this content:
Package: libtidy-dev
Pin: release o=LP-PPA-ondrej-php
Pin-Priority: 400
But it doesn't work. If i replace first row
Package: *
Pin: release o=LP-PPA-ondrej-php
Pin-Priority: 400
it will works but for all packages from this repo. I dont't need to reduce priority for all packages, I want to do this only for "libtidy-dev". So I tried another way. I wrote to pref file this:
Package: libtidy-dev
Pin: origin archive.ubuntu.com
Pin-Priority: 990
Package: libtidy-dev
Pin: origin security.ubuntu.com
Pin-Priority: 990
This config does the same thing. If first row has package name it not works, but if I specify asterisk instead of package name, it works but for all packaes of these repos. What I'm doing wrong? How to set priority for one package of one repository?
The server that hosts my terminal service is set to use dd/mm/yyyy
and Pounds
for currency. When I login as a user instead of getting the aforementioned settings I get mm/dd/yyyy
and Dollars
for currency; however, if I login as an administrator, the expected setting are used. Does anyone know what to do in order to have non-administrator users get the desired settings of dd/mm/yyyy and Pounds? Thanks.
It is standard story, there is fight between developers and administrators.
One denunciation that database design and queries are bad while others says It is lack of hardware
and amount of data.
So I am asking You is my IBM x3400 with 2 xenons 2GHz and SCSI raid 5 and 4GB of RAM adequately shaped for MSSQL database of 53 GB with tables main details is around 6,5 million of records in details and 2 million in headers of documents while others is around 100K (such as items).
We are constantly suffering with lack of performance while getting data from SQL, this server is only dedicated to be only SQL server and act as subscriber of Replicated data from other SQL server.
Other question is How does database administrators planing size of hardware for DataBase servers ? Is there some standard approach or it is just experience and sense ?