Tag Info

New answers tagged

0

I don't think any kind of solutions that involves touching the SMTP server is going to work. The information you want to work with ("which domain is being used") is known to nopCommerce and whatever web server you're using. However, nopCommerce is the "agent" acting on it and sending email. It should be the one carrying the logic to decide which email ...


0

You haven't define any redirect directive in nginx. Here the proper config. #here the redirect section. If server doesn't match www.example.com or example.com, it will redirected to http://www.example.com server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; server_name _; return 301 ...


0

I also redirect 404 and 403 to the index file, ErrorDocument 404 /index.php ErrorDocument 403 /index.php


0

Ansible-Pull Assuming that your devices running embedded Linux can run Python and Ansible, one solution would be to use the Ansible-pull script to have them check out your Ansible playbook from a central location and have the devices run ansible-playbook locally against it. This way you don't need to be able to access the devices via ssh. You could call ...


2

in ubuntu 14.04.1 THIS happens if you clone a system to other hardware as /etc/udev/rules.d/70-persistent-net.rules contains MAC address's of ethernet hardware on the source computer. YES - just deleting /etc/udev/rules.d/70-persistent-net.rules allows things to be refreshed to a working state at reboot.


0

In your setup, the path between VM1 and VM2 is intended to be forwarding Ethernet frames. Since the Ethernet layer is beneath the IP layer, the implication of that is, that nothing on the path between VM1 and VM2 is supposed to know what happens on the IP layer. Only VM1 and VM2 will know about the IP layer. So assigning an IP address to br2 looks like a ...


1

Short Answer: Apache: Just use a catchall/wildcard vhost. Makes account provisioning way easier. DNS: Only allow subdomains, and have your customer's create a CNAME with their existing DNS provider. AWS: Using AWS or not will have no impact on the answer to the question at hand. Long Answer: Regarding the Apache vHost setup: You have numerous options ...


0

You shouldn't use root directive inside location blocks. Try this: location /develop/auth { alias C:/webapps/develop/mil_catele_auth/public; try_files $uri $uri/ /index.php$is_args$args; } With this configuration, URLs work like this: http://example.com/develop/auth/image.png -> C:/webapps/develop/mil_catele_auth/public/image.png If you use ...


1

If I understand your situation correctly you might be able to do this using a combination of set_fact and/or a template that then loops through all the hosts. For example, assuming you have a task defined something like this: - name : Configure database command: /path/to/some/script {{ inventory_hostname }} {{ some_var }} {{ some_other_var }} You could ...


2

I use FreeTDS on Debian to connect a php-driven website to a MS-SQL Server 2005 Database. The explanation I can give to the config files: /etc/odbc.ini Holds the instance that is referred to within the handler (e.g. php) that connects to the database (see example below). The configuration defines the server it needs to connect to. ...


0

I managed to resolve the error. The problem was that I had the default vhost with the same server name as my custom vhost


1

This is exactly what Ansible is used for. There is no agent, you just have to create a text file called: /etc/ansible/hosts with content that looks something like: [webhosts] web[1-8] This would specify that machines "web1, web2...web8" are in the group "webhosts". Then you can do things like: ansible webhosts -m service -a "name=apache2 ...


0

Yes, because you are inviting attention to your site in a way that does not serve any real purpose. Unless you are specifically sharing configurations which others may find useful, the only likely result is increasing the visibility of your site to crackers and bots (regardless of whether your configuration itself is problematic). Of course, as pehrs points ...


0

The solution I use for blocking realtime bad activity IP's coming out of AWS and others is this... In my CSF Firewall in the config for LFD Blocklists I use a list found here - http://myip.ms/browse/blacklist/Blacklist_IP_Blacklist_IP_Addresses_Live_Database_Real-time Download Blacklist for CSF Firewall ยป ...


0

Eureka, I made it work. The main issue was with the tutorial info, it was significantly out of date. I installed nginx 1.6, which creates a folder structure similar to Apache, with sites-available and sites-enabled. There is no need (and no use if you don't know how to configure it) on the steps I made creating those folders in /usr/local/nginx... The ...


0

more /proc/scsi/scsi This may work on your system. It appears to work for Red Hat 5.5 on some hardware (not all). Shows the RAID level and size of logical drive.


1

The first question for Terminal.com would probably have to be what underlying technology they use to run their VMs (if they even are full virtualization). They claim their VMs only take 5 seconds to startup. This to me almost sounds like they might be running some sort of container technology (Docker or regular LXC) which wouldn't work to run CoreOS. ...


1

The one document which tries to make sense of all this is the Filesystem Hierarchy Standard; a.k.a. the FHS. It does not provide an easy straightforward answer to your question, though. There seems to be 3 options: Use /opt/tunnel and keep all files relating to the application there. Use the packaging system and package your application as a Debian ...


1

Okay simple difference between odbcinst.ini and odbc.ini from unixodbc site which is the first hit on google: The system file odbcinst.ini contains information about ODBC drivers available to all users, and the odbc.ini file contains information about DSN's available to all users. These "System DSN's" are useful for application such as web servers ...


0

OK I figured it out a way to do it. What I did was use mod_rewrite, which is an Apache module (shipped by default with all installations) for rewriting requested URLs on the fly. Here's the code: # Custom error pages ErrorDocument 404 /hidden/404/index.html ErrorDocument 403 /hidden/403/index.html # Pretend that /hidden doesn't exist # (unless this is an ...


2

The most common way is ~/.ssh/authorized_keys, it allows users to manage their own keys. Unless you're planning to migrate to a different authentication (e.g. LDAP) system someday, this should be your choice. Keep in mind that each ~/.ssh/ folder needs to be chmod'd to 700 and chown'd to the respective user. By the way, if you manage lots of users, have a ...


0

Off the bat, you've two closing tags in the Virtual Host definition for Apache. I'll assume you've left the default server document root for Apache unchanged, even though its not listed. For your NGINX configuration, I noticed you've not listed proxy_redirect. Try including this in your NGINX Server config and seeing if manually specifying the location ...


1

According to the manual Configuration directives set in the main server context (outside any <VirtualHost> container) will be used only if they are not overridden by the virtual host settings. So in theory setting directives in the main config, if allowed by the context of the directive, should work and be enforced as long as you don't override ...



Top 50 recent answers are included