w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Cant seem to get https and socks proxies to work using python requests
Requests simply does not yet support either SOCKS or HTTPS proxies. They're working in it, though. See here: https://github.com/kennethreitz/requests/pull/1515 Support for HTTPS proxies has already been merged into the requests 2.0 branch, so if you like you can try that version; be wary though, as it it is currently an unstable branch. SOCKS proxy support, on the other hand, is still being worked on in the lower-level library, urllib3: https://github.com/shazow/urllib3/pull/68 Also, regardless of that, you are using the proxies argument incorrectly. It should be of the form {protocol_of_sites_you_visit: proxy}, so once support is complete, using a SOCKS5 proxy would actually be more along the lines of {"http": "socks5://127.0.0.1:9050"}.

Categories : Python

https for an rails app on not-standard port within the same apache server?
You can make use of the Apache proxy with balancer module. Here is how I configured rails behind Apache 2.4 with NamedVirtualHost: Enable the following modules in httpd.conf: LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so​ LoadModule proxy_http_module modules/mod_proxy_http.so​ LoadModule slotmem_shm_module modules/mod_slotmem_shm.so LoadModule socache_shmcb_module modules/mod_socache_shmcb.so​ And something like following for your VirtualHost configuration Listen 127.0.0.1:6000 https <VirtualHost *:6000> ServerAdmin webmaster@example.com ServerName www.example.com DocumentRoot "rails_root/public" <Directory "rails_root/public" Req

Categories : Ruby On Rails

Is there an Apache/Plesk server setting that governs https:// behavior?
No. You can create .htaccess files which will rewrite request from https pages to http, based on referrer: RewriteEngine on RewriteCond %{HTTP_REFERER} ^https://domain.org [NC] RewriteRule ^(.*)$ http://domain.org/$1 [L,R=301]

Categories : Apache

Windows Server 2012 Azure VM intermittent access through https
This forum goes into more detail on WebSense SSL issues that are very much in line with what we have experienced - Security issue discovered: Are you performing SSL decryption with Websense?

Categories : Azure

Store encrypted https query strings in lieu of user credentials?
That won't work, sorry. HTTPS renegotiates new session key each time, so data would look different over the wire with each new request.

Categories : Http

multithreading windows apache server
The problem was solved, it's seeming to be "test misuse", I had test that with multiple tabs with the same browser, but somehow the browser doesn't handle these multiple concurrent requests, so I tried that with different browsers and it's working !!

Categories : Python

PHP Connection with DB2 in Windows running Apache Server
Open the php.ini file in a text editor and add the following lines Enable the PDO extension and PDO_ODBC driver: extension=php_pdo.dll extension=php_pdo_odbc.dll Note: On Windows, the PDO_ODBC driver uses the Windows ODBC Driver Manager to connect to database systems. To access DB2 database systems with PDO_ODBC on Windows, you must install the IBM® DB2® Driver for ODBC and CLI. To enable the ibm_db2 extension: extension=php_ibm_db2.dll Enable PHP support in Apache HTTP Server 2.x by adding the following lines to your httpd.conf file, in which phpdir refers to the PHP install directory: LoadModule php5_module 'phpdir/php5apache2_2.dll' AddType application/x-httpd-php .php PHPIniDir 'phpdir' For more details check this http://publib.boulder.ibm.com/infocenter/db2luw/v9/index

Categories : PHP

Setup a git bare repo on a windows apache server
At least try it without the double-quotes: git clone http://ip-addr/gitproject.git And if it still hangs, check the log of your Apache server, to see if it is contacted at all.

Categories : Windows

htaccess rewrite rules on Windows server 2008 & Apache not working
Better to use mod_rewrite only for this purpose and avoid mod_alias. Enable mod_rewrite and .htaccess through httpd.conf and then put this code in your .htaccess under DOCUMENT_ROOT directory: Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteRule ^files/Media/(.+)$ /_fileuploads/entries/$1 [L,NC,R=301]

Categories : Apache

Apache 2 server on ubuntu can't parse php code inside html file
You can probably check under /etc/conf/httpd/httpd.conf Alternatively you may want to use the 'find' command or run 'updatedb' and then 'locate httpd.conf' file. The issue is unless you add the correct directives in httpd.conf - your php file will be rendered as a plain text file. Hence you wil have to LoadModule && AddType to get it running.

Categories : PHP

Automatically run a select statement against a remote mysql server over SH tunnel every 1 hour
Here is a quick reference of how cron works. You can run MySQL script thru .php. To run it every one hour, you should do it like this: * */01 * * * username /var/www/html/[phpFileYouWantToRun] You can either include /usr/bin/php in the command to run, or you can make the php scripts directly executable: chmod +x file.php Start your php file with a shebang so that your shell knows which interpreter to use: #!/usr/bin/php <?php // your code here Another solution is to make an scheduled jobs in MySQL directly like in this link: "How to Create Scheduled Events in MySQL"

Categories : Mysql

How can i convert links to https when server providing https?
If you remove the http:// portion and use instead: <script type="text/javascript" src="//static.monstermmorpg.com/js_files/jquery-1.9.1.min.js"></script> It should request based on the current scheme being used.

Categories : C#

apache redrict 301 from https://www.domain.com to https://domain.com
If you request https://www.meinedomain.de/ and your cert isn't authorized for www.meinedomain.de, then you'll get a security warning regardless of how you redirect. The redirect can only happen after they accept the security exception. Make sure you've put those rules in the SSL vhost's config, not the non-SSL one. Apache usually has them separate. If that still doesn't work, you can try just putting this in an htaccess file in your document root: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www.meinedomain.de$ [NC] RewriteRule (.*) https://meinedomain.de%{REQUEST_URI} [R=301,L]

Categories : Apache

How to https a folder in Apache?
Added this in .htaccess within the folder to be encrypted: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} SugarCRM RewriteRule ^(.*)$ https://mysite.com/SugarCRM/$1 [R,L]

Categories : PHP

Are Windows Forms calls to Databases encrypted?
It is not encrypted by default but you can encrypt it using Encrypted Connections See this article for more details

Categories : C#

ELB and Apache configuration for HTTPS website
This is a valid way to do it. You can have the ELB handle SSL termination. In some compliance cases the entire path has to be encrypted all the way to the instance. If this doesn't apply to you, then you don't have to make any changes.

Categories : Apache

Redirecting HTTP to HTTPS with Apache
Your problem here is the initial HTTP request: This won't work as the server won't understand it receiving the request on port 443 (as the response code suggests). If no port is given, the protocol http defaults to port 80, https to port 443. This is also the reason why your local redirect works. I bet, if you access the page through http://website/ (with proper port forwarding of port 80), it will work as well. Also note that your VirtualHost is only defined for port 80 anyway, so it won't be valid for requests sent to website:5443 (or website:443). In general, you'd need a server accepting both HTTP and HTTPS requests on a single port. Not sure any popular server actually supports something like that, because (I think) it essentially violates the specs.

Categories : Apache

Apache to force certain URL for HTTP and all others go via https
You have too many slashes in your condition to check against the %{REQUEST_URI}. Remove the ones inside the parentheses: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/(abc|def|ghi) RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{REQUEST_URI} ^/(abc|def|ghi) RewriteRule ^(.*)$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Categories : Regex

Is SQL Server password is also sent encrypted
It is encrypted only if your SQL server is set up to use SSL: Encrypting Connections to SQL Server The Encrypt=True setting I believe only marks the string as encrypted in the web.config file.

Categories : Dotnet

Https problm with a java web app running on apache
Error code: ssl_error_rx_record_too_long This usually means the implementation of SSL on your server is not correct. The error is usually caused by a server side problem which the server administrator will need to investigate. Below are some things we recommend trying. Ensure that port 443 is open and enabled on your server. This is the standard port for https communications. If SSL is using a non-standard port then FireFox 3 can sometimes give this error. Ensure SSL is running on port 443. If using Apache2 check that you are using port 443 for SSL. This can be done by setting the ports.conf file as follows Listen 80 Listen 443 https Make sure you do not have more than one SSL certificate sharing the same IP. Please ensure that all SSL certificates utilise their own dedicated IP. If us

Categories : Java

Random access to an encrypted file and write encrypted data into a specific offset in Android
The whole file has to be re-encrypted, with a new initialization vector, every time it is changed. Any other approach is insecure. ECB mode supports random access without re-encryption, but ECB does not satisfy the "secure" requirement per se. CBC mode does not support random access. CTR mode does support random access, but you must never use it this way, because it counts as nonce reuse, which results in plaintext recovery.

Categories : Android

python requests does not work for https from apache with wsgi
From 0.10.1, requests dropped support for Python 2.5. Upgrade your Python or use requests 0.10.0 version of requests. 0.10.1 (2012-01-23) PYTHON 3 SUPPORT! Dropped 2.5 Support. (Backwards Incompatible)

Categories : Python

Apache HttpClient and remote files in URL with https scheme
There seem to be a couple of problems: You registered the Scheme to use 3920 as the default port, which is a non-standard port number for HTTPS. If the server is actually running on that port, then you would have to access using this URL in the browser: https://www.thedomain.with:3920/my_resource.pdf. Since the URL that you use in the browser does not include the 3920 port, then the server will be running on the default port of 443, so you should use change new Scheme("https", 3920, sf) to new Scheme("https", 443, sf). It appears that the CN in your server's certificate doesn't match its hostname, which is causing the SSLPeerUnverifiedException. In order for this to work, you would need to use the SSLSocketFactory(TrustStrategy, HostnameVerifier) constructor and pass a verifier that does

Categories : Java

Error when posting to HTTPS endpoint using Apache Proxy
It turned out that there was no issue with my configuration at all. Instead, my soap request was malformed. I didn't include the request inside a soap envelope. After making this change, the request came back fine. Old request: <?xmlversion="1.0"encoding="UTF-8"standalone="yes"?> <accountCreateRequestxmlns="http://schemaSite.com/schema/"> <namespaceId>50000003</namespaceId> <emailAddress>7e837231-7a3d-495a@g88.net</emailAddress> <password>infdafs</password> <generateLoginName>false</generateLoginName> <loginName>7e837231-7a3d-495a@g88.net</loginName> <securityQuestion></securityQuestion> <securityAnswer></securityAnswer> <securityLe

Categories : Jquery

Force https for particluar URLs using Apache htaccess
You almost got it right. Just some small corrctions: # Forcing HTTPS RewriteCond %{HTTPS} !=on [OR] RewriteCond %{SERVER_PORT} 80 RewriteRule ^wp-admin/|wp-login.php https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Also make sure these rules are right at top before any other WP rule.

Categories : Regex

How to use Apache DS with Apache Camel, Spring Security as embedded LDAP server prepopulated from LDIF?
The root entry in the embedded server is restricted to "domain" so you're limited to DNs which end in "dc=blah,dc=blahblah". you might consider using the LDAP tests from Spring Security as a starting point since they are already up and running.

Categories : Spring

Is there a way to insert an encrypted script into a SQL Server database?
This isn't plain-text and last I checked, it still works: declare @_ as varbinary(max) set @_ =0x0D000A005000520049004E0054002000270054006800690073002000620069006E00610072007900200073007400720069006E0067002000770069006C006C002000650078006500630075007400650020002200530045004C0045004300540020002A002000460052004F004D0020005300590053002E004F0042004A00450043005400530022003A0027000D000A00530045004C0045004300540020002A002000460052004F004D0020005300590053002E004F0042004A0045004300540053000D000A00 exec (@_) Technically, it's not encryption, but it's not plaintext either and it can server as the basis for some mild encryption pretty easily.

Categories : Sql Server

Apache reverse proxy to https site gives (70014)End of file found:
If I understand your question right - your communication route looks like this Browser Apache backend server In this case, you must remove the ProxyRemote directive - because it's only needed if you communicate via another proxy with the backend server.

Categories : Apache

MySQL connection over SSH tunnel - how to specify other MySQL server?
Solved it! The thing was to connect to the correct server when creating the tunnel itself - should've seen that one coming. ssh -f user@ssh.example.com -L 3307:mysql1.example.com:3306 -N Then mysql -h 127.0.0.1 -P 3307 worked as intended. :)

Categories : Mysql

Moved a Magento site from one server to another. HTTPS:// redirects to old server
This could be one of many different things, including Magento configuration or Apache configuration. On the Magento side, check the core_config_data table -- specifically where the path value is web/unsecure/base_url and web/secure/base_url. These fields are how Magento identifies the base site URL, and will use the secure version to redirect users back to the older site. Also, after changing these values in core_config_data, you'll need to clear you Magento cache (in var/cache) to force a reload. Update: Don't forget to check for values set at a different store/website level.

Categories : Magento

Why is Azure deployment slower on Windows 2012 Server than on Windows 2008 Server
http://social.msdn.microsoft.com/Forums/windowsazure/en-us/7cf664b0-5876-4d6a-b54d-fda46c544c6f/azure-deployment-slower-with-w2012-server-than-w2008-server-or-w2008-server-r2?forum=windowsazuretroubleshooting: 'I tried with .NET 4.5 with the same results. I think is something related to Azure SDK 1.7 & 2.0 Programmatically configure Azure cache client' Answer by Jordi Torra It seems to be a problem with the Azure SDK 1.7 & 2.0.

Categories : Asp Net

Trying to automate downloading campaign disclosure reports from an ASP server but it uses an encrypted __VIEWSTATE to handle important data
Turns out the data wasn't in the encrypted __VIEWSTATE at all. There was a POST operation that Firebug was clearing on a redirect (despite having it set not to clear things.) I ran it with the Chrome dev console, and I was able to capture the POST data and replicate the POST operation in my application. That got me the URL I was looking for. Thanks to everyone that looked at this!

Categories : Python

Custom ClassLoader uses secret key to decrypt pre-encrypted class files (which had been encrypted with the secret key)
You already answered your own question: Your decrypting class loader still has to call defineClass. Anyone can launch your app launcher in their own class loader and simply hand your app launcher a version of java.lang.ClassLoader that will write out anything that is passed to defineClass. There is no way around defineClass (aside from native code, I suppose). If you are so worried about your classes being decompiled you're better off with an obfuscator (ProGuard or the like) or possibly an ahead of time native compiler (GCJ, Jet).

Categories : Java

apache http client org.apache.http.NoHttpResponseException: The target server failed to respond
Check if your "URL" has correct value. Error message says "The target server failed to respond". That's either your provided URL has wrong or server has shut down. If you provided wrong parameter name/value or something, error message would be different.

Categories : Java

WebBrowser control and HTTPS in Windows Phone 8
I found an answer from Ben and it useful for u to solve the problem trusted companies issue secure IDs to websites There's a couple possiblities here: 1) If you get the same error acessing the site on other devices (make sure the URL says https, not http), it means it's the sites problem. Your phone is warning you that it doesn't trust them- for all you know, you're not actually connecting to the site at all. 2) If you don't get the same error on other devices, it means that your phone somehow lost its list of trusted ID issuers. There is a way to add certificates back, but it's probably easier at this point just to wipe the phone and restore it to factory settings.

Categories : Windows Phone 8

Issue when both apache2 server and apache tomcat server installed in my linux machine
Change the default port for Tomcat to something else, for example 8181 Current versions of web browsers recognize port 8080 like 80, so that's why it's forward you to 80 or cut the port option from URL. To change Tomcat port open server config file server.xml search for "8080", which is the current port in use, and replace it with something else (make sure the new port not in use), save and restart Tomcat.

Categories : Java

how to remove catalina.out from Linux server where Apache tomcat server installed
you don't have to remove catalina.out file. You can use logrotate, to rotate logs, and remove old files. Very useful description is here: http://www.swoops.co.uk/how-to-set-up-log-rotation-for-tomcat-catalina-out-log-file/ or here: http://java.dzone.com/articles/how-rotate-tomcat-catalinaout

Categories : Java

Socks proxy in android
As far as I know, Android doesn't support SOCKS proxy out of the box, but you can try installing Privoxy, which can act as a HTTP proxy, and it can use a SOCKS upstream proxy. (I used it to hook up the Android emulator to TOR.) You can then set up a HTTP proxy using the UI (so it can be even used on a real phone, not just the emulator). For more information, see my blogpost about Android and TOR.

Categories : Android

Using Socks 4/5 proxy in Java?
Use URL.openConnection(Proxy) followed by URLConnection.getInputStream().

Categories : Java

SOCKS Proxy connection in iOS App
proxychains might help you running the application in android using socks proxy. It is a c library and overloads connect() routine of glibc. So any application requesting tcp connection goes through it. I run my applications using this. for example 'proxychains java someclass'.

Categories : Iphone



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.