New answers tagged

0

In general the way to achieve this is to use vlans to create logical groups of hosts on the shared network. A common setup is to isolate devices into their risk categories. A small office setup might have the following vlans internal (trusted PCs) - vlan 1 - 10.0.1.0/24 guest (guest wifi, mobile) - vlan 2 - 10.0.2.0/24 file servers/printers - vlan 3 ...


0

Regeneration of rules in the file /etc/audit/audit.rules uses the rule files contained in /etc/audit/rules.d/. That's the case for RHEL7/CentOS7 and, if memory serves, also for RHEL6/CentOS6. Do the following as root or with sudo: sudo augenrules --check If changes were detected, update with: sudo augenrules --load Any changes made to files in /etc/audit/...


1

sshd can't change the working directory to the user's home directory because it doesn't exist. It therefore leaves the working directory set to /. You assigned this user the home directory /home/sftp/allu. But then you chroot the user to /home/sftp. That means that relative to the chroot, that directory is at /allu! Not /home/sftp/allu. You need to know that ...


0

I do it with a copy command to combine multiple config--a config--b files into config file, just remember to edit in sub files. cp config-* config


0

If /etc/purecore/hosted/xxx is the home directory for user, you can use %h, which points to the home directory of the user. More information here: https://man.openbsd.org/sshd_config#TOKENS


0

i use Fancy Index module (ubuntu: libnginx-mod-http-fancyindex) and specify simple file with this js snippet. location / { fancyindex on; fancyindex_footer footer.html; fancyindex_ignore footer.html; } <!-- footer.html in the folder --> <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <script> ...


0

I found even more stupid way to get it resolved! It works for me What I did was manipulating the host file in the primary server. For instance if my replication server name is 'replicationserver' with IP 192.168.3.54 Normally you would be putting this in host file replicationserver 192.168.3.54 instead, I modified it to replication-server 192.168.3.54 Then ...


1

return appearing in a server block but not within any location is always processed before any location blocks are even looked at, in the phase NGX_HTTP_SERVER_REWRITE_PHASE. You need to add this to a location block which matches anything not matched by your other location blocks. So all of your server blocks should have one or more location blocks, not zero ...


0

After some more research, I finally found the solution: The named placeholders are only supported for lighttpd versions 1.4.50+, but for the older version there is a different solution: $HTTP["scheme"] == "http" { $HTTP["host"] =~ ".*" { url.redirect = (".*" => "https://%0$0&...


0

Try running this in your git project folder (/path/to/site/git/test.git) git --bare init git update-server-info This should prep the git directory and create the necessary files. You are just missing the second step, I think.


0

I have found a solution myself: location /api/v1 { include /etc/nginx/php_fastcgi_location.conf; alias /srv/http/v1/public; index index.php; try_files $uri $uri/ @apiv1; } location @apiv1 { rewrite /api/v1/(.*)$ /api/v1/index.php?/$1 last; } Although i have found this by trial and error, i would be happy if someone could explain the ...


0

Make sure you actually changed something. Find the location of the certificate in your webserver-config. Mine is here: /etc/apache2/sites-enabled/ssl.conf It looks like this on my box: SSLCertificateFile /etc/ssl/certs/example.de.pem Inspect the certificate with openssl x509 -text -in /etc/ssl/certs/example.de.pem and check if that is actually the ...


1

There is only one way to do this with vsftpd and paths must be set in the system passwd file. Paths cannot be set in the vsftpd.conf file. In the /etc/vsftpd.conf file, set the following two options: chroot_local_user=YESpasswd_chroot_enable=YES You must also change the user's unix home directory to indicate where the chroot jail is rooted. The chroot jail ...


Top 50 recent answers are included