w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Vagrant Apache2 http/https port forwarding
For your use case, the default Networking mode - NAT is not a good choice because you have multiple ports (at least 80 and 443) to be forwarded. I recommend using bridged mode so that the guest appears to be a physical host in your LAN and you will be able to access HTTP/HTTPS using its LAN IP. You don't need to do port forwarding (actually you cannot do port forwarding in VirtualBox for bridged mode). To use bridge mode (Public Network), in your Vagrantfile add config.vm.network :public_network into the Vagrant.configure block and do a vagrant reload, it should work flawlessly. Use ifconfig -a to check, a 2nd interface will be added for bridged. Reference: http://docs.vagrantup.com/v2/networking/public_network.html

Categories : Ubuntu

How to configure nginx rules so that if one failed it serve the request using another
http://wiki.nginx.org/HttpCoreModule#try_files try_files is your friend, here you can do the order you want to try files and finaly have the proxypass upstream.

Categories : Nginx

How do I configure Sinatra to serve 403 (Forbidden) on a specific exception?
Maybe what you're looking for is the "error" block? http://www.sinatrarb.com/intro.html#Error error MyCustomError do return status 403 end raise MyCustomError unless valid?(thing)

Categories : Ruby

Configure Nginx to serve "/" from a directory already inside root
server{ root /var/www; location = / { root /var/www/home; } location / { } } Reference: http://nginx.org/r/root http://nginx.org/r/location How nginx processes a request Understanding the Nginx Configuration Inheritance Model

Categories : Nginx

how to serve website with apache over the internet?
You need to do the following: 1. Ensure that the server is publicly accessible To do this you need to ensure Port 80 is routed through your router to the servers internal IP address. This is called NAT. If you are using a Cisco router you can see the instructions here. Any firewalls are configured not to block the traffic on port 80. If you are using Linux you would most likely need to configure iptables. If you are using Windows you can do this on the windows firewall. If you are using a third party firewall you need to search google to find out how to do it. You need to ensure you are using the public ip address to connect. You can find this by using a website such as http://whatismyipaddress.com/ 2. Setup the virtual hosts on apache The reason you are only seeing the "It Works" mes

Categories : Django

how to configure https in sails.js
If you're using the latest v0.9 (and maybe some versions of v0.8) take look inside of config/bootstrap.js. You should be able to access your express app via the sails.express context. From there I think you should be able to do with it what you want to... Also someone in the #sailsjs irc channel said this worked for them module.exports.bootstrap = function (cb) { var fs = require('fs'); sails.config.express.serverOptions = { key: fs.readFileSync('ssl/key.pem'), cert: fs.readFileSync('ssl/cert.pem') }; cb(); };

Categories : Node Js

How can I configure yeoman (gruntjs) to run as HTTPS?
grunt.initConfig({ connect: { server: { options: { protocol: 'https', port: 8443, key: grunt.file.read('server.key').toString(), cert: grunt.file.read('server.crt').toString(), ca: grunt.file.read('ca.crt').toString(), passphrase: 'grunt' } } } }); see this commit

Categories : Http

How do I configure NPM to Trust the firewall issuer for HTTPS proxying?
Found the solution... (Ignoring SSL Certs) npm config -g set strict-ssl false Thanks to this thread in google groups.

Categories : Node Js

Configure WCF Service to enable HTTPS and Transport Credential with User Name and Password
To enable Https, change <serviceBehaviors> <behavior> <serviceMetadata httpsGetEnabled="true"/> </behavior> </serviceBehaviors> and add <security mode="Transport"/> in the <webHttpBinding>. for User Name, Password authentication use the following link: link

Categories : C#

How can I configure rails to not use 'www' for my website?
This task is done by configure correctly the virtualhost of your server (not RoR or Passenger). You should localize the host file on your webserver (apache, nginx,..) and put something like this: <VirtualHost *:80> DocumentRoot /www/example1 ServerName example.com # Other directives here </VirtualHost> Maybe this link can help you: http://httpd.apache.org/docs/trunk/vhosts/examples.html

Categories : Ruby On Rails

Redirect website from http to https
I can see that you've taken the code snipet from Steve Marx example The problem is that you have whitespace in your rule name. Just remove them and it will work. The name attribute of rule must not have spaces; the rule won’t work correctly in IIS on Azure with spaces in the name. Find the full article here: Azure https guide

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

Redirect a website from http to https
This solution helped me. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://domain.name/$1 [R,L] </IfModule> I hope it'll be helpfull for you too.

Categories : Apache

HTTPS redirects to totally different website?
i think its a hosting issue. I had similar problem with subdomains, when on one of my subdomains completely different site appeared. Its due to on 1 server (ip) there are more than 1 domain (shared hosting) and it might be not configured properly. Ask your hosting provider support how they would explain and fix it, as this is obviously big security issue.

Categories : Http

HTTPS website accessing HTTP WCF service
it seems that you have enables https and want to consume service vai http. so please change your serviceMetadata <serviceMetadata httpsGetEnabled="true"/> to <serviceMetadata httpGetEnabled="true"/>

Categories : Asp Net Mvc

Always get a Security Error for Internal HTTPS Website
It almost sounds like you need to trust a self-signed certificate? Perhaps follow: https://confluence.atlassian.com/display/SOURCETREEKB/Resolving+SSL+Self-Signed+Certificate+Errors

Categories : Osx

Configure website in Visual Studio 2010
Just create solution and then press right button: Add -> Existing web site... You can debug using development web server in VS.

Categories : Asp Net

How do I login to a website programmatically when it crosses over from HTTPS to HTTP?
If you are certain that (1) your client is handling cookies correctly, (2) you are logging in correctly, and (3) the http://www.dotmed.com server is working as expected, then the problem might be the cookie set by https://secure.dotmed.com: To be usable across subdomains, the cookie domain must be Domain=.dotmed.com Since it was set by HTTPS, the cookie MUST NOT set the Secure flag if it is to be usable on a non-HTTPS request.

Categories : C#

http/https mismatch with linkedin recommendations on a website
I had the same problem while integrating LinkeIn auth on my site. While it didn't stop the linkedin api from working, I was annoyed to see the error popping on the console. So I binded a listener to remove any iframe coming from "https://api.linkedin.com" before it loads. jQuery('body').bind("DOMSubtreeModified", function(evt) { var elemento=evt.delegateTarget.lastChild; if(elemento.tagName=='IFRAME') { if(elemento.src.indexOf('https://api.linkedin.com')!=-1) { jQuery('#'+elemento.id).remove(); } } }); Everything is still working.

Categories : Javascript

Configure WCF WebSite to support RESTful access from a browser
Mark the Operation in your contract (IService interface) with following attribute - [WebInvoke(Method = "GET", BodyStyle = WebMessageBodyStyle.WrappedRequest, ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate="GetData/{id}")] And then try invoking your service from browser by adding GetData/[any number]

Categories : C#

How to configure Provider Settings in Administer Website tool
First of all you are using legacy ASP.Net Membership Provider. Here is the new ASP.NET Universal Providers. Then, you need to configure Membership Provider (see in the Scott Hanselman's article).

Categories : C#

How do I create an .htaccess to serve index if the last node is a directory, else, serve a file?
place this code in .htaccess under the root directory of your site Options -MultiViews RewriteEngine ON RewriteCond %{REQUEST_FILENAME} -d RewriteRule (.+) /$1/index.php [QSA,L] RewriteCond %{DOCUMENT_ROOT}/$1.php -f RewriteRule ^(.+?)/?$ /$1.php [QSA,L]

Categories : Apache

Disable Google Indexing the HTTPS version of our website naked domain
GAE doesn't officially support naked domains. What you're seeing is a limitation of GAE, https://developers.google.com/appengine/kb/general#naked_domain

Categories : Google App Engine

Does my website require https/ssl for Paypal Express Checkout for recurring payment?
If by 'https/ssl' you mean whether your site itself needs to support SSL traffic over HTTP (and thus have a valid SSL certificate): no, it doesn't. You do however need to be able to establish an SSL connection. Specifically, to PayPal's API endpoint. This means you need to allow outbound SSL traffic via your firewall (if you have any) and your environment needs to support this. Ensure you have a valid copy of the root certs (I usually suggest http://curl.haxx.se/ca/cacert.pem) to valid the SSL certificates against.

Categories : Paypal

Scrapy - using scrapy is it possible to login to an https website
Scrapy will support https by default, just be sure to use the right protocol in your URLs when you're launching the scraper.

Categories : Python

Facebook like button https issue: protocol mismatch from http and https
Reviewing the js code on Facebook there are multiple urls containing hard coded strings for http://static .../rsrc.php it's possible those are the files triggering the error. This may be something Facebook needs to update. On a side note, it may be possible to download that js file from Facebook and store it on your server and remove the hard coded http string. I would test this further but I am on my phone at the moment.

Categories : Facebook

How do you enable https and http->https redirects in ring / compojure
It's possible to serve HTTPS with clojure, but it's much more popular to put nginx or something like that in front of your ring server. If you can figure out how to configure jetty, though, run-jetty clearly supports SSL.

Categories : Http

when using https, https can't find codeigniter controllers. Running Centos
Change this line : RewriteRule ^(.*)$ index.php?/$1 [L] to : RewriteRule ^(.*)$ /index.php?/$1 [L] The .htaccess would otherwise be redirected relatively to a index.php in the join folder, which off course is not there.

Categories : PHP

Once https page is visited, all subsequent pages are served from https
ok I think I found the reason. The links I am visiting are relative, so "/forum" for example. Once https is in the browser it seems like visiting a relative address is leaving the root as https:// and appending the relative path. I believe the fix here will be to use the full path for the link instead of relative.

Categories : Htaccess

Any way configure to configure visual studio mvc build views release mode
Are you specifically setting something to compile the views like the Razor Generator? (http://razorgenerator.codeplex.com/) If not views in MVC are not compiled.

Categories : Asp Net Mvc

TFS 2012 Configure Features Error - Unable to configure Planning Tools
Try this: Rename your User Story to "Product Backlog Item". Set the Initial State of you "Bug" to "Active". Try the Upgrade Rename your User Story Type back to "User Story". Remove the "Active" Initial State. Export your Common Process Config and add in your "Proposed" State into the Bug Configuration (see below). Import your Common Process Config. Example BugWorkItems <BugWorkItems category="Microsoft.BugCategory"> <States> <State type="Proposed" value="Proposed" /> <!-- more --> </States> </BugWorkItems>

Categories : Tfs

Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess
In case anyone from the future (HELLO PEOPLE OF THE FUTURE) stumble across this, I asked the same question and had it answered over at Server Fault. Short version: impossible. Long version: http://serverfault.com/questions/523199/redirect-all-http-and-https-non-www-urls-to-https-www-example-com-via-htaccess

Categories : Htaccess

Can https fallback to http and security level of https
No, HTTPS never falls back to HTTP automatically. It would take deliberate action by the user. If you're just going to a web page by putting its URL into the address bar, this is easy; for form submission it's harder. Yes, sending plain text over SSL is fine. In fact, sending a hashed password doesn't really increase security much at all -- if someone manages to sniff the connection and gets the hashed password, that's all they need to be able to login to the site. It has one small advantage: if the user uses the same password at multiple sites, learning the hashed password for one site doesn't help them get into another site that uses a different (or no) hash. And it's not likely to be feasible to send salted hashes, since the client doesn't know the salt. A cnonce adds an extra level

Categories : Asp Net

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#

HTTPS GET request to https://www.googleapis.com/plus/v1/people/me
Create a Google_Oauth2Service object (put it under the $plus initialization), like: $client = new Google_Client(); $plus = new Google_PlusService($client); $oauth2 = new Google_Oauth2Service($client); and after succesfully authenticating the client use: $userInfo = $oauth2->userinfo->get(); $email = $userInfo['email'];

Categories : PHP

IHttpHandler to redirect "https://example.com" to "https://www.example.com"?
If you use IIS7, you might want to try URL Rewrite Module. http://www.4guysfromrolla.com/articles/072810-1.aspx http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/

Categories : Asp Net

Friendly url in apache2
depending on where is your htaccess located (root directory or /owner directory) //if in root RewriteBase / Rewriterule ^owner/servicios/(.+)/$ owner/servicios.php?servicio=$1 //if in owner directory RewriteBase owner/ Rewriterule ^servicios/(.+)/$ servicios.php?servicio=$1 Hope it helps.

Categories : Apache

Gitlab6.0 and Apache2
In case this helps anyone else; I had this same problem, but it was a lack of disk space in my case. I deleted some large backups and restarted apache with service httpd restart and my gitlab came back.

Categories : Apache

Can't enable use of .htaccess in apache2
editing /etc/apache2/sites-available/my-virtual-host-path and changing the Directory block to target /var/www/my-virtual-host-path and setting AllowOverride All in that file now allows the .htaccess file to be run. I suppose that the /etc/apache2/sites-available/default file is only used when you aren't using a virtual host.

Categories : Apache

Apache2 is not wanting to be deleted
There is a problem with your virtual host configuration, DocumentRoot must be a directory. If you want to serve a specific file, use DocumentIndex to specify the files to use in order of preference: <VirtualHost *:80> DocumentRoot /var/www/ DocumentIndex remote_replay.php index.php index.html index.htm ServerName 192.168.1.80 </VirtualHost>

Categories : Apache



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