Questions tagged [conf]
60 questions
0
votes
0 answers
Apache2 - serves a subdirectory as root but now other sites in subdirectories are broken
So I have a new tool installed on my webserver and it has a somewhat complicated folder structure, in order to get it to run, I put everything in a subdirectory and serve that as root of my domain.
The corresponding .conf
…
0
votes
0 answers
URL rewriting in nginx for multiple projects php & react
I am facing a 404 error when I access my site directly from IP. The default root directory is /var/www/html. And I am accessing it through http:///folder_name.
This is my folder structure.
/var/www/html
├── WordPress1/
…

Sanjay Goswami
- 101
- 3
0
votes
0 answers
How do i redirect proxy nginx?
I am running 2 geoserver and nginx container. I want to call https://xxx.xxx.com/geoserver the other one https://xxx.xxx.com/geoserver2. The geoserver containers are running behind proxy container. This is default domain.com/geoserver…
0
votes
1 answer
Apache2 VHost for subdomain
I configured several months ago my nextcloud on my Ubuntu 20.04.3 LTS VM running on my FreeNAS, following their tutorial so bear with me, I'm in no means a trained apache2 guru ;-)
My current VHost config for my nextcloud is as…

quintz
- 11
- 1
0
votes
0 answers
react.js app with nginx gives 404 or refresh
I have a backend node.js application(system directory) and a frontend react application(admin directory). I use nginx as the webserver.
I can load my frontend well. But when I refresh, it gives 404. I have looked in the nginx directives, but I'm not…

user1641443
- 103
- 1
- 4
0
votes
2 answers
Why nginx "return 301" and ”try_files“ fall into an infinite loop
my conf code:
index index.html index.php;
location / {
if ($uri = '/a/') {
return 301 https://example.com/a;
}
try_files $uri $uri/ =404;
}
If url is /a/, 301 to /a, then try_files part, add / to /a end, become /a/.
Next step,…

nanxiaobei
- 1
- 2
0
votes
1 answer
ntpd does not sync clock if it gets internet connection little late
In our production box, I am a facing a problem with ntpd. I am enabling the NTP feature for our production box and observing one isssue.
We start the ntpd daemon in the initialization process of our box. During that time internet connection is not…

vivek
- 105
- 1
- 5
0
votes
2 answers
Get the first letter of subdomain as variable
How do I get the first letter of a variable in nginx
example
server_name ~^(?\w+)\.development\.test$;
location / {
root /var/www/test/$subdomain.0/$subdomain;
try_files $uri $uri/ =404;
…

MC-ifac
- 3
- 1
0
votes
1 answer
nginx multiple dynamic paths issue
We're hosting 2 Angular applications on one Linux server running nginx. We'd like to have use same hostname within 2 Angular apps.
Let's say when I browse to http://example.com, it'll use one of these apps, but if I browse to a specific page, it'd…

bigfan
- 1
0
votes
0 answers
How to modernize apache conf virtualhost files
So I have some old Apache confs for virtualhosts that I have not updated for awhile, and I would like to review them and modernize them if needed. But I'm not quite sure where to begin or what is the best approach. Is there some kind of linter…

Jayn
- 1
0
votes
2 answers
IP address shows default Nginx welcome page,but URL shows the WP site that is installed
I have installed WordPress on a LEMP stack in Ubuntu in Digital Ocean.
When I use the Droplet IP address to access it, it shows the default nginx welcome page; but when I use its URL, it shows the actual WordPress site that is installed on the…

Praveen
- 1
- 2
0
votes
2 answers
Can I use both pool and server configurations in ntp?
For a ntp demon, what happens if I have this configuation in ntp.conf:
pool 0.pool.ntp.org burst iburst minpoll 4
server europe.pool.ntp.org
?
How will ntp be configured?
I don't know there to be any way to query ntp for its active configuration -…

user1828163
- 13
- 2
0
votes
1 answer
How to edit .conf files from a script
On a new VPS I might want to ensure that certain config values are set, or amended if they already exist. For example in /etc/systemd/journald.conf I want to set SystemMaxUse=100M if it's not already set, or in /etc/ssh/sshd_config I want…

bjw
- 101
0
votes
1 answer
nginx conf file fault causing mixed content
Hi can someone help to check the nginx conf file?
Old and new images upload to my site are causing mixed content error. So, if I change the source code it won't solve the prob.
I think it's caused by nginx conf file -request
.The images are…
-2
votes
1 answer
Nginx force https only for index page
What's the best way to set up nginx conf to force https on the index.php page only and every other page be forced to http.
thanks

Sherif
- 33
- 3