I just made a Virtual host using latest apache in ubuntu.
It finds my index.html and serves it correctly, however when trying to download myfile.jar (also in /var/www) from a remote host it returns 404. Doing this locally works fine...
After lots of googling a mime type was added with the addtype directive however this has not solved the problem for remote hosts.
Please help!
There is no reason why a jar file should not be delivered. It might be served imperfectly if the MIME type is incorrect, but it shouldn't produce a 404.
Check whether the JAR file has permissions that allow Apache to access it
Check out error.log to see the jar's exact path that Apache failed to find. That will also tell you whether you're maybe operating in the wrong directory.
Related
When running the bncert-tool on my LightSail server, I have accidentally modified some of Apache's configuration files which I now need to revert from the backup directories.
See previous question and answer here for more info: Modified Bncert command has taken site offline
I have looked in both the /opt/bitnami/apache2/conf and /opt/bitnami/apache2/conf/bitnami directories and can see a series of files including httpd.conf.back.202101220056 (/conf) and bitnami.conf.back.202101220056 (/bitnami).
My question is which backup files do I need need to copy to which location?
I assume it is performed via a 'mv' command.
Many thanks for your help.
On a bitnami stack the main Apache server configuration file is (httpd.conf)
When you are configuring server for SSL this is usually done in the file (bitnami.conf)
I would start by replacing the current bitnami.conf with the original bitnami.conf. Then restart your server so that the changes that effect. bitnami.conf is located in the directory apache2/conf/bitnami
If that does not fix it then replace the current httpd.conf with the original httpd.conf. Then restart your server so that the changes that effect. httpd.conf is located in the directory apache2/conf .
Note you will find it a lot easier to modify server files if you connect to your server with FileZilla. You can delete and drag and drop to copy files with FileZilla.
Nexus OSS 3.7.1-02 running on RHEL 7. I have several repositories on it and I am able to publish and retrieve packages and jars, therefore, I presume that the setup is working correctly.
In the official documentation, I am referring to the 'Serving SSL Directly' section which uses the embedded Jetty server for serving https connections.
I am unable to find the file '$install-dir/etc/org.sonatype.nexus.cfg' mentioned in the documentation and there are a couple of config. around this file. I executed a find command for that file on the root directory but the file doesn't exist at all.
Another confusing step is:
Edit $install-dir/etc/org.sonatype.nexus.cfg. Change the nexus-args
property comma delimited value to include
${karaf.etc}/jetty-https.xml.
Now there's neither any directory under the 'karaf' directory nor does the file exist there but I found one jetty-https.xml file under nexus-3.7.1-02/etc/jetty.
How shall I proceed?
That isn't the official documentation, it's the documentation for "3.0". The official documentation is here: https://help.sonatype.com/display/NXRM3 (unversioned).
Specifically, I suspect you're looking for this: https://help.sonatype.com/display/NXRM3/Configuring+SSL.
Anyway, that file was replaced in an older version.
It now resides in ${data-dir}/etc/nexus.properties.
I need to find a way/setting to allow Nginx to run a .bat file that will create directories and files via a WINDOWS service; my OS is Windows 10.
Currently, our windows service fails to create directories and files with the following:
CreateFile()
"C:\someForlderName\build\distribution.\nginx/logs/error.log" failed
(3: The system cannot find the path specified)
Somehow Nginx doesn't have enough permissions to perform write-access operations like creating directories such as /logs/ and /temp/ within the /Nginx/ directory.
Anybody ran into this problem before?
I was facing the same problem, sharing the thing that worked for me.
Nginx is showing this error because... nginx didn't find the error.log file..
For that,
Go to you nginx folder where other folders like conf, docs, html etc are their as.
Create folder name logs, and in that folder create a file name error.logas.
see the right way in picture..
If your Nginx is at D:\nginx\nginx.exe, execute this to start nginx
D:\nginx\nginx.exe -c D:\nginx\conf\nginx.conf -p D:\nginx\
For Nginx on Windows, you need to execute nginx server related command from respective home directory where nginx configuration file is located.
After recompiling my Nginx (to install PageSpeedModule), I put the new Nginx to my "/usr/sbin/" folder then I restarted Nginx.
But, all my sites are now in 404 error. I took a look to my "/etc/nginx/" folder, and all it's ok, I have my sites enabled configured.
It seems that Nginx don't take my config file, or use another folder. How can I repair this ?
Thanks.
In the performance settings when Optimize CSS files is selected, I get a 404. The reports section shows a 404 for example sites/default/files/ctools/css/588b003a48050c4e59cbeba2b453cb92.css not found.
I have the site running on a Mac without any issues.
It's on Ubuntu.
It's not a permissions issue (files dir and sub dirs have chmod 777). And the directory does exist.
Any ideas? Or has any body else experienced this issue?
Make sure that the temp directory exists! Check Admin/File System for the setting. Especially if the DB was copied from another system (i.e. Windows), this may be set wrong.
If the temp directory doesn't exist, it can't compile the CSS files before copying them to the default/files/... directory
if your server is linux flush your cache,
if your server is windows port to linux! :)