New answers tagged

0

You can create site folders with mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled # And then split your large your_config.conf file into smaller files into sites-available/ with: YOURCONF="/etc/nginx/conf.d/your_config.conf" cd /etc/nginx mkdir -p sites-available sites-enabled cd sites-available/ csplit "$YOURCONF" '/^\s*server\s*{*$/' {*} ...


2

New-Vhd is part of the Hyper-V PowerShell cmdlets. Assuming that you're remotely invoking this command in the servers themselves, I would imagine some of your servers don't have these cmdlets installed.


0

Even though the author has solved his problem reinstalling phpMyAdmin, nginx needs to be properly configurated to handle the redirect upon login correctly. After days smashing my head on the keyboard I finally found the real solution and I'm sharing here as this thread still have high priority on google search. As stated on the link : http://www.samundra....


1

I found the answer after spending a few more hours on it this morning. You need two additional server blocks: one to enforce the www, one to enforce the https while keeping the wildcard subdomain. Here's the code: server { listen 80; listen 443; server_name domain.com; return 301 https://www.domain.com$request_uri; } server { listen 80; ...


1

After trying various types of memory, I am convinced that the memory controller of the Fujitsu Primergy TX150 S7 chokes on the databus-width of the individual DRAM chips. The memory chips that the server came with, and that ultimately worked, all had a databus width of x8 (2Rx8). That you can't mix ranks (1R and 2R), ECC, buffered and unregistered memory ...


0

It looks to me like you're explicity forwarding it to domain.com. Have you tried adding www between the https:// and the $server_name? That's what I do, and I have a tutorial on this kind of thing. The sample config files may be of some use. server { listen 80; server_name *.domain.com; return 301 https://www.$server_name$request_uri; } Report back ...


2

All of the pagefile parameters are stored in the registry. Have your script manipulate the values in the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management For instance, the PagingFiles entry is a multi-valued string, with each different paging file on a separate line. The numbers following the filename ...


0

Ever since version 2.7.x you can do: cat $(puppet agent --configprint resourcefile) (source of solution)


5

You need to open endpoints for the services you want to make accessible from the Internet. In the old Azure portal these are listed under Endpoints. In the new portal under Inbound Security Rules.


0

I've managed to solve the mystery by deleting the server context from nginx.conf. It comes after the include directive, and I guess it overshadowed the server and upstream blocks from myapp.conf, although in the output of nginx -T, the latter appears last.


1

nginx -T will perform syntax check and dump your final configuration file to stdout. https://nginx.org/en/docs/switches.html -T — same as -t, but additionally dump configuration files to standard output (1.9.2). Also you could check error log /var/log/nginx/error.log for some runtime errors(can't bind to address for example).


-4

You want to have two NICs to prevent clogging up the NLB. I have seen this happen especially during the search crawl. So one NIC should be used for the WFE to talk to SQL and should be on a separate VLAN that does not go through the NLB. The other NIC goes through the NLB and is how users access the WFE.


0

Option 1: From the command-line shell su - postgres /usr/bin/pg_ctl reload Option 2: Using SQL SELECT pg_reload_conf(); Using either option will not interrupt any active queries or connections to the database, thus applying these changes seemlessly.


4

Nginx will choose the first server in the config if no default server is specifically defined. Install a dummy default server. # This just prevents Nginx picking a random default server if it doesn't know which # server block to send a request to server { listen 80 default_server; server_name _; return 444; access_log off; log_not_found off; } ...


1

Nginx will always create new proxy connection for incoming connection unless it is cached localy. As MJPG is an infinite loop, it doesn't seem as an option here. What I would however try is setup a ffmpeg/vlc on the proxy server to consume mjpg stream from rpi. Nginx then can connect to local ffmpeg/vlc to get stream. You will then have only one connection ...


2

There is no way to do this using standard NGINX configuration. To tidy up your configuration (without using external tools) move the common configuration into its own file and include it from each section: php.conf: try_files $uri $uri/ /index.php?$args; location ~ \.php$ { include fastcgi_params; fastcgi_pass unix:/run/php-fpm/php-fpm.sock; ...


0

This problem is caused by the common configuration of cgi.fix_pathinfo = 0 that disables the current path for PHP-FPM. One quick solution is to change cgi.fix_pathinfo back to 1, or set the path parameters on the virtual server block of nginx.


0

Why do think mysql is a bottleneck? Im pretty shure php is the issue here, since i manage lot of magento websites with more visits than 10k/day. Wp is 100%compatible with php7 so start from there. Do it in a development environment first then in live. Also a cacheing plugin is a good boost, i suggest redis cacheing simple super fast. Next step would be to ...


0

If your server is using the default configuration, it should be using the snakeoil self-signed certificate. This is adequate and acceptable to establish TLS connections on outgoing and incoming connections. It will however fail validation. You will need to use a certificate from a trusted authority to pass validation. Are you providing clients with ...


0

It's really simple now: - name: get github key(s) and update the authorized_keys file authorized_key: user: "{{ username }}" key: "https://github.com/{{ username }}.keys" for detail, check this github role



Top 50 recent answers are included