cannot find client_max_body_size of nginx.conf - file-upload

I am having the old familiar problem
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
I edited the memory_limit, upload_max_filesize and post_max_size of php.ini.
But I cannot find the nginx.conf file anyware on my system and I dont know where to run those commands # vi /etc/nginx/nginx.conf. I have Windows Server 2012 r2 and I am a newbie with nginx, conf files and setting servers in general.
Thanks
EDIT
My system has windows 2012 server r2. I did not installed nginx. Server (software/hardware) is new out of the box, has no other sites, only mine. Has only apache, nodejs, python, postgreSQL, geoserver and make 3.81. I have not installed anything else. Maybe my server connects with nginx from another server in the lan?

Related

How to install SVN server when Apache HTTP Server is already installed in Windows?

I have a computer with Windows Server 2016 operating system. It has IIS 10 installed using ports 80 and 443 and Apache HTTP Server 2.4 installed using port 81 and 4437.
Now I want to install SVN on it so that remote users can access it using http protocol. So I want SVN to use Apache HTTP Server. I went to https://subversion.apache.org/packages.html#windows web page to download SVN and looks like all products have Apache HTTP Server builtin.
Is there a documentation / video tutorial which tells step by step of installing in such scenario?
Thanks
Is there a documentation / video tutorial which tells step by step of
installing in such scenario?
The installation procedure remains the same when IIS or other httpd instances are running on the computer.

SSL installed on domain with wamp, but browser says "insecure"

I followed this tutorial Installation SSL in wamp server: Error in httpd-ssl.conf to set up SSL on my server, but still the browser says "Site is insecure".
Windows server 2012R2
Wamp server 3.1.3 64 bit.
Running Moodle on it.
Checked my domain on https://www.ssllabs.com/ssltest/ but got no errors.
Any help would be appreciated.
I solved it by adding https to the moodle configuration file. Apache related configuration was fine according to the link provided above.
Cheers

Nginx and Apache on same domain

I am running a vps with Ubuntu on it. On this server, I have a nginx server which hosts a wordpress website at port 80. I am trying to figure out how I can create a subdomain on my website to host an apache svn server from at an example url like: https://svn.example.com where my wordpress site is located at http://www.example.com
I have searched around quite a lot, and either I am missing the basic tutorials or there aren't any.
Could someone explain the basic process to me?
Run Apache on 443 port only (pure https), add virthost to it and add SVN to it, using any manual from Net

Nginx, Apache and Plesk

I am currently trying to take some load of my Apache web server.
The idea is to let nginx handle the static files.
The procedure is simple nginx pass-> 8080 to Apache.
There is just one problem.
The server has Plesk installed, and Plesk handles the vhosts with the .include files in every vhost folder/config.
Every vhost has an different port and setup in his own .include file, and that makes it impossible to change the Apache port to 8080 on a global level.
Any ideas?
As mentioned, it's better to use latest plesk 11, because it has native nginx support and it's actually stable now.
Since Plesk 9.5 appears ability to change apache ports through /usr/local/psa/admin/bin/websrvmng check for --set-http-port and --get-http-port in this pdf
Since Plesk 10.2 there is ability to change apache port on global level through plesk database http://kb.parallels.com/11232

jquery on localhost

I am using Linuxmint (= ubuntu linux 9.10)
I installed LAmp server which have apache,php mysql
and now i am trying to write jquery code
i made a file and it worked perfectly with this link : file:///var/www/jquery/jquery.html
but when i use this link, then it doesnt work anymore : http://localhost/jquery/jquery.html
the file jquery.min.js is in the same folder
and i already changed the src of it in source code to
<script type="text/javascript" src="/var/www/jquery/jquery.min.js"></script>
<script type="text/javascript" src="jquery.min.js"></script>
but none of them works (with localhost link)
using firebug I saw these errors:
The requested URL /var/www/jquery/jquery.min.js was not found on this server.
You don't have permission to access /jquery/jquery.min.js
on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80
so what do I have to do to make it run?
The second approach should work, if the apache server has read access to file /var/www/jquery/jquery.min.js.
If apache's user is wwwrun and the group is www, do the following:
chmod -R 0744 /var/www/
chown -R wwwrun:www /var/www/
This will ensure, that the apache user will have the rights to view, execute, etc. the files in your web-folder.
You also need to make sure your Apache configuration allows you to serve js files.
Try to access http://localhost/jquery/jquery.min.js and see if you can get the file.