Tag Info

New answers tagged

2

The default_server needs to be set for every port you use in your configuration. So, you need to add default_server after listen 80; to the virtual host you want to be the default server for port 80.


1

Use server_name .example.com; instead. From nginx's server names documentation : A special wildcard name in the form “.example.org” can be used to match both the exact name “example.org” and the wildcard name “*.example.org”. Note that www.example.com can be removed as the wildcard form will match it anyway.


0

Seems pretty straight forward... usershare_acl=-The user you want to give ACL's to-:-ACL Modifier- Seem's fairly well documented to be put up as a question that you are answering for yourself the same minute you ask it.... :\


0

Just make a script. Sure an elegant solution built into nginx would be nice... but let's not forget the tools *nix affords us: #!/bin/bash for i in /etc/nginx/conf.d/*; do sed -i 's/server_name example.com www.example.com;/server_name other.example.com;/g' "$i"; done ... You may have to escape those semicolons.. Not sure...


1

You're mixing several different ways of mapping an URI to a part of the file system, and they don't all work together. Firstly, if your DocumentRoot is /var/www, then the AliasMap is completely unnecessary. This isn't clear from your snippet, though. Second, since /var/www/custom is a directory, you should use the Directory directive when you refer to it. ...


0

None of the above worked for me - maybe outdated - anyway, I found this solution: apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall mysql-common


1

Sorry to necro, but while @naught101's answer was correct for modified files, it didn't help for added files. @Graeme's solution is nice, but depends on etckeeper; I don't want to modify the filesystem. find /etc -type f | grep -vFf <(debsums -e | sed 's/[[:space:]]*OK$//') Find files in /etc/ that debsums does not report as valid. This means either ...


1

This is what the 1.4.17-3+deb7u2 version of the unbound.conf(5) man page says about include: Files can be included using the include: directive. It can appear any‐ where, and takes a single filename as an argument. Processing contin‐ ues as if the text from the included file was copied into the config file at that point. If also using ...


0

It was found that the application was taking too long to initialize when configured correctly. I misinterpreted it as a problem with WebLogic, but it's actually a problem with the application. Without enough logging, the application appeared hung when it was in fact going through a loop quite slowly and consuming a lot of time starting up. WebLogic was ...


0

It turns out I didn't have sufficient permissions on the machine and someone in our server group was easily able to accomplish this. See also http://stackoverflow.com/questions/27432364/mvc-5-iis-7-5-double-hop-issue-avoid-hard-coded-sql-passwords/27550079#comment44092453_27550079 where I posted the following: (corrected a spelling error here, for some ...


0

I figured it out... you can't add multiple lines with add_config(). Instead, first create an array containing each line and then add this array to the config: my $vhost = [ "<VirtualHost *:80>", "ServerName $host", "ProxyPreserveHost Off", "ProxyPass /assets $blogapiurl/assets", "ProxyPassReverse /assets ...


2

It took a long while but I've finally been able to find out the issue. It's in the NSS configuration /etc/nsswitch.conf. My Rackspace Cloud Server had the yum package sssd-client installed by default, and /etc/nsswitch.conf has default entries for passwd and other files to use sss. Basically if you have the default /etc/nsswitch.conf and install the ...


9

This error occurs when the server_name is too large to fit in the hash bucket. The default for server_names_hash_bucket_size is chosen depending on the CPU cache line size of the server. In particular it's meant to be as small as possible, to reduce CPU cache misses, as server_names must be looked up on every request. As for why you're limited to 14 ...


5

The default length should be automatically determined during the start, dependent on used server names, but this should also be updated during a reload operation. See if it works without manually setting the bucket size but with a restart instead of a reload. See http://nginx.org/en/docs/hash.html to learn how hash sizes are determined and ...


1

Turns out I wasn't looking hard enough. The Report Server can be set using the SetReportingServicesManagerServer method available under the FPCReports > FPCReportingServicesProperties object. Example Dim root Set root = CreateObject("FPC.Root") Dim array Set array = root.GetContainingArray ...


0

check your doc_root is set right in php.ini doc_root = C:\base_dir\htdocs thats all mine needed if you don't want an absolute path, you can unset it and it should also work. ; doc_root = "" just tried it on mine with no issues


0

I have not found a solution to this vsftpd problem, but in the absence of an answer I explored some other FTP daemon options. I am currently using bftpd, which I was able to configure to send the appropriate address to clients. This has fixed my lack of a working FTP server, so for now I will accept this as the answer, though I would still be interested in ...


7

After some debugging and Aaron's help, I've found the problem. The ISC DHCP client fetches ntp servers information by default in Debian. Debian's ntpd init script makes it use that info, by extending /etc/ntp.conf with it. The resulting file is made available at /var/lib/ntp/ntp.conf.dhcp. The solution is, of course, properly configuring DHCP not to ...


1

Assuming that the server is standalone and not a member of a domain, then you can achieve the result you desire by performing any of the 3 options below: Enable the Interactive logon: Do not display last user name: setting in the Local Security Policy snap-in (secpol.msc). Change the registry value dontdisplaylastusername to 1 for the following key: ...


1

Allright, here a more complete answer for this : The rewrite engine does not work exactly the same way depending on the location of the rewrite instructions. There are basically 2 contexts for the instructions: per server and per dir. They are as follow: | in apache2.conf files: | | here it is per server | | <VirtualHost> | | per server | ...



Top 50 recent answers are included