Symfony services – Drupal :: request () -> getSchemeAndHttpHost () returns https on a site without https

Battery exchange network

The Stack Exchange network consists of 175 question and answer communities, including Stack Overflow, the largest and most reliable online community for developers to learn, share their knowledge and develop their careers.

Visit Stack Exchange

Sale: up to 95% discount on all web hosting services | Offers for the 11th anniversary – |

Scopehosts It offers you all the birthday deals, get all the web hosting services at incredible prices, the ultimate in lifetime savings on web hosting services. Celebrate and save with oscilloscopes with ease, instantly save offers …

VPS Hosting-The 11th Birthday Offers

Take your business to the next level and get the birthday gift only at Scopehosts, get a 45% discount on web hosting services. Take advantage of all the discounts for life today and save loads.

VPS OpenVz Hosting

vCPU: 2vCPU (Core)
vRAM: 2048 MB
SWAP: 2048 MB
SSD: 40 GB
ipv4: 1
ipv6: 5
Bandwidth: unlimited
Network: 100 Mbps
Special offer at: 4.49 euros only
Location: Netherlands, Russia, Germany

KVM VPS Hosting
vCPU: 2vCPU (Core)
vRAM: 2048 MB
SWAP: 2048 MB
SSD: 40 GB
ipv4: 1
ipv6: 5
Bandwidth: unlimited
Network: 1 Gbps
Special offer at: 5.99 euros only
Location: Netherlands, Russia, Germany

For more updates on offers, you can like our pages.

If you have questions, you can contact us
Best regards,
Andre Allan
Sales Manager
Thank you. beyond the connection – since 2008
SSD Shared Hosting Services – SSD Reseller Hosting Services | Managed WordPress Hosting | Hosting services KVM VPS Windows VPS managed | Unmanaged VPS | Unmanaged Dedicated Servers | Special web hosting offers

Amazon web services – AWS Lambda assumes the cross-account role with externalid

I am trapped in cross-account roles in AWS. Since I can't find clear examples, the solution can be trivial, but I can't find it.

The case:
I want to write a file in an S3 bucket in another account, using a cross-account role and an external ID. The cross-account function has been configured in the other account. I have tried assuming the role using the command line, which is successful. But I don't let AWS Lambda use the role.

My problem is probably externalid: how should I provide it?

I have tried the following in Terraform:

resource "aws_iam_role" "test_role" {
  name = "test_role"
  assume_role_policy = <

Thanks in advance!

amazon web services: discover the private DNS of load balancers in Cloudformation

This is a fairly common problem, but I have trouble finding an appropriate answer on how to do it.

I have two applications, which will run on EC2. These applications will be in their separate automatic scaling groups, which are behind their own ELB.
These 2 applications must communicate with each other, so they must know the internal DNS of the ELBs.

I can think of some ways to do it:

  1. Create ELBs in advance and use them by name on the CF template. (I have not tried, there was a publication about not being able to refer to an ELB name created externally in the CF template. But I suppose it should be feasible).
  2. Create the ELBs first in the CF and then obtain their private IPs through Fn::Gett (or something similar), and then write this value in an environmental variable in the application.
  3. Implement a service discovery, where each application / ELB, write its private IP in a database or something similar for other applications and discover the IPs of the other services / applications.

Option # 2 would be the best case, and I guess this is the process that is more infra-like-a-code. However, I cannot find the proper documentation on how to do it.

If someone can recommend me the right way to do it, I really appreciate it.
Thank you.

Amazon web services – Ensure reach in AWS Cognito

I am working on a project with AWS API Gateway, together with AWS Cognito to authenticate and authorize users. I defined my user group and added a resource server to add custom scopes, I currently have two of these:

  • com.mycompany.api/lender.r
  • com.mycompany.api/lender.cud

Using Cognito, I created an Application Client, which is configured with a Authorization code grant OAuth flows. I have allowed my custom scopes defined above. I have established a domain name for the user group and, as a result, I have a hosted UI that I can use to register / log in, etc.

I can see that it is configured by parameters in the URL, that is


What prevents an attacker from adding com.mycompany.api/lender.cud to the list of scopes in the URL? This would allow them to use a valid login to add additional scopes to their JWT access token, which in turn is used by an API Gateway Authorizer to protect the endpoint. To try to combat this, I wrote my own implementation of a registration / login form using amazon-cognito-identity-js but it does not allow to define which scopes pass to the access token, and instead provides a scope of aws.cognito.signin.user.admin.

Am I missing something obvious here? Do I need to write my own logic at the callback endpoint to determine if the user's access token should have the scopes in the payload?

amazon web services – Can you help me develop the lambda script in aws?

I want to reflect the traffic between ALB (src eni) and NLB (dst eni). However, since the ALB ENI changes from time to time, there is the problem of adding a session manually. Therefore, I think we need a script that automatically registers a session (src eni-id) if I want to apply a real service. I plan to use the Lambda to solve this problem.

How can I develop a script that automatically adds eni-id as a source of VPC duplication?

Amazon web services – Can I receive the HTTP pakcet (raw data) format using VPC Mirroring on AWS?

There ~

Currently, AWS offers a new service called VPC Traffic Mirroring.
I wonder if I can receive the HTTP format packet (raw data) using this service between ALB (src) and NLB (dst).

Do I have to decrypt this reflected package to see the unformatted format (HTTP)?

Amazon web services – PHP GD enables webp image format

I have created an instance of Linux AWS EC2 and I have a Laravel application that runs successfully in PHP 7.2. One of the composer's packages converts images to the webp format, but has received this error:

Call to undefined function Gumlet\imagecreatefromwebp()

From what I understand, this is related to the image format that is not set in GD within PHP. I have confirmed that GD is installed and active and, from what I have read, the solution to this problem is:

./configure --with-vpx-dir=

But I don't know where this should run. I ran this at the root of my EC2 instance and got the error:

bash: ./configure: No such file or directory

Hoping someone can point me in the right direction.

amazon web services – AWS Glue Job Does not activate another job after successful completion

I have a Glue A job and another job B. I have created a job event trigger at work B.

When job A completes successfully, job B must be activated. But after completion of job A, the trigger is not activating job B. Does this feature still not work in AWS? What is the alternative? Can we use Cloudwatch + Lambda for this?

amazon web services – Billing separation with AWS accounts

I run several companies that use AWS resources. Each business has its own credit card. I would like to charge each company's card for the resources the company uses. I have created an AWS account for each company, but each AWS account belongs to the same AWS organization. I think It is useful for everyone to belong to the same organization so you can more easily share reserved instances, AMI and RDS backups between organizations.

My problem is that all account fees are billed to the default credit card in the AWS Payer account. Is it possible to charge each account charges to your own credit card? It seems that I can add a card to each linked account, will that cause it to be charged to the linked account card or will all charges be billed to the payer's account card?

Thank you!