Use Apache as Proxy and to Rewrite Requested Host

I am trying to use an Apache server for two very limited purposes. There is a single, dedicated device (Black Box) on a local network which makes calls to a remote original.host.com. I wish to use Apache on this local network as a proxy that will also substitute my.newhost.com for original.host.com when Black Box requests service. The Black Box allows me to specify a proxy server but does not allow me to change its target host for the HTTP service requests.

Black Box makes only two very specific requests:
http://original.host.com/rectrack/file_name.php?data_1=text_string_1
and
http://original.host.com/rectrack/file_name.php?data_1=text_string_1&data_2=text_string_2

which I wish to change to:
http://my.newhost.com/rectrack/file_name.php?data_1=text_string_1
and
http://my.newhost.com/rectrack/file_name.php?data_1=text_string_1&data_2=text_string_2

Using .htaccess I am successfully able to configure Apache as a proxy so this function works.

I have tried using the following rewriteRule (as well as many variations) to substitute my.newhost.com for original.host.com, but I can’t seem to get Apache to actually make the substitution:

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine on
RewriteCond %{HTTP_HOST} original.host.com
RewriteRule   ^(.*)  http://my.newhost.com/$1

Does anyone have any idea what I might be doing wrong?

docker – Como permitir que meu container SQL Server criado pelo contaner do jenkins consiga obter a visualização de arquivos .bak do meu host?

Gostaria de que meu container SQL Server criado pelo contaner do jenkins consiga obter a visualização de arquivos .bak do meu host e assim possa efetuar a restauração de alguns bancos. Como consigo realizar esta tarefa?

  1. Detalhes do meu ambiente:

Eu utilizo windows 10 pro e o WSL (windows subsystem for linux).
Criei um container jenkins no docker que monta minha infra local de ambiente dev.
Ele é o ambiente ‘host’ do container do Sql Server e de quase toda a minha infra.
Sobre os daemons do host e do container eu efetuei bind entre esses daemons.

docker-compose do meu jenkins

version: "3.7"

#Volume to sql-server-container-dev
volumes:
  jenkins-dev:
    name: jenkins-dev

services:
  
  jenkins-dev-service:
    container_name: jenkins-dev
    hostname: windows-host
    build:
      context: .
      dockerfile: Dockerfile  
    image: jenkins-image-dev
    ports:
      - "8080:8080"
    volumes:
     #Bind o daemon docker do host para o container
     - '//var/run/docker.sock:/var/run/docker.sock'

     #Dependencia abstrata
     - 'C:/Projetos/infra_agil/jenkins:/jenkins'

docker compose do sql server

version: "3.7"

networks: 
   sql-server-network:
     driver: bridge
     
volumes:
  jenkins-dev:
    external: true

services:
  # Habilite Filesharing se não o sql server não irá subir
  sql-server-db:
    container_name: sql-server-container-dev
    build:
      context: .
      dockerfile: Dockerfile
    image: sql-server:2019
    volumes:
      - type: volume
        source: jenkins-dev
        target: /backups
    ports: 
        - "1433:1433"
    networks:
      - sql-server-network 

O docker-compose do meu jenkins está localizado:

C:Projetosinfra_agiljenkins

O docker-compose do sqlserver está localizado:

C:Projetosinfra_agiljenkinsinfra_comumsql-server

Os arquivos de backup estão localizados:

C:Projetosinfra_agiljenkinsdatabasebackups

Abaixo uma imagem que apresenta a localização destes arquivos.

Árvore do diretório

Já fiz diversos testes. Em um deles eu consegui fazer um ‘bind’ entre a pasta backups do host – jenkins – e do sql server mas o container do sql-server não conseguia ver os arquivos dentro da pasta, apenas o jenkins conseguia ver.

Warning From Swedish Web Host Alleged Defamation

I have a network of sites that contain a lot of user generated content, so I host offshore so that my host does not have to worry about friv… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1826612&goto=newpost

Which web host?

Hi,
i want to buy me a webserver on netcup.
My problem: I cannot decide which I should buy.

I cannot post links yet.
[COLOR="… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1826482&goto=newpost

{Global Host IT Smart} Host a website on Windows|Plesk Availed|US Based Servers – Hosting, VPN, Proxies

Get the high octane windows hosting plans with Host IT Smart at the best affordable pricing with premium features.

We are mainly famous for providing an extremely powerful, end-to-end management, reliability, and scalability features along with its highlighting features of integrating the business with the internet and any Microsoft products to the website.

We try our best to make simple data management from your end & offer you the Plesk to manage the work quick & secure. All these features at the rock bottom pricing. Have a look at the pricing and its features

Server Location:
India

Below is the pricing of the Windows Hosting Plan:

Starter plan – @ Rs 100/mo

  • 250MB webspace
  • 50GB Bandwidth
  • 1 website
  • SSL Certificate
  • 25 Email IDs
  • 1 MSSQL/MYSQL space

Performance plan – @ Rs 300/mo

  • Unlimited webspace
  • Unlimited Bandwidth
  • 5 Websites 
  • SSL Certificate
  • Unlimited Subdomains
  • 10 MSSQL/MYSQL space
  • Unlimited Email IDs

Business plan – @ Rs 400/mo

  • Unlimited webspace
  • Unlimited Bandwidth
  • Unlimited websites
  • SSL Certificate
  • Unlimited Subdomains
  • Unlimited Email IDs
  • 20 MSSQL/MYSQL space

These are 50% discounted, but you can avail more discounts with the plans.

If you purchase WordPress hosting for 1 or 2 years, it avails you for an additional 20% discount.
By Applying code: HOSTITSMART20, You Get an Extra 20% Discount.

If you purchase WordPress hosting for more than 2 years, it avails you for an additional 30% discount.
By Applying code: HOSTITSMART30, You Get an Extra 30% Discount.

 

Our Support Team is prepared to help you in any circumstance and anytime to tackle any issue in the best possible manner. We additionally furnish Instant Talk administration to interact with you, virtually.

For Immediate Assistance or information, contact us: info@hostitsmart.com or visit our website for live chat. 
 

mongodb – ReplicaSet configurado no docker-compose não encontra primário ao conectar do host

Olá,

Para fins de estudo, estou tentando configurar um replicaset, mas para tentar fazer o mais próximo de uma configuração em um ambiente não containerizado, não estou usando as configurações padrões da imagem docker do mongodb.
Desta forma estou configurando toda a parte de ips através do arquivos de configuração no mongo e definindo ips estáticos para cada container. Eu consigo conectar no replicaset perfeitamente através de um dos containers, entretando tentando conectar através do host o mongo parece se perder nos endereços de ip. Segue abaixo o retorno do log tentando acessar do host.

$ mongo --host replica-example/localhost:27017 -u user-admin -p admin-pass --authenticationDatabase admin
MongoDB shell version v3.6.8
connecting to: mongodb://localhost:27017/?replicaSet=replica-example
2020-10-22T09:37:05.848-0300 I NETWORK  (thread1) Starting new replica set monitor for replica-example/localhost:27017
2020-10-22T09:37:05.871-0300 I NETWORK  (thread1) Successfully connected to localhost:27017 (1 connections now open to localhost:27017 with a 5 second timeout)
2020-10-22T09:37:10.879-0300 W NETWORK  (thread1) Failed to connect to 172.30.1.2:27018 after 5000ms milliseconds, giving up.
2020-10-22T09:37:10.880-0300 W NETWORK  (ReplicaSetMonitor-TaskExecutor-0) Failed to connect to 172.30.1.3:27019 after 5000ms milliseconds, giving up.
2020-10-22T09:37:15.888-0300 W NETWORK  (thread1) Failed to connect to 172.30.1.1:27017 after 5000ms milliseconds, giving up.
2020-10-22T09:37:15.889-0300 W NETWORK  (thread1) Unable to reach primary for set replica-example
2020-10-22T09:37:20.899-0300 W NETWORK  (thread1) Failed to connect to 172.30.1.2:27018 after 5000ms milliseconds, giving up.
2020-10-22T09:37:25.904-0300 W NETWORK  (thread1) Failed to connect to 172.30.1.3:27019 after 5000ms milliseconds, giving up.
2020-10-22T09:37:30.909-0300 W NETWORK  (thread1) Failed to connect to 172.30.1.1:27017 after 5000ms milliseconds, giving up.
2020-10-22T09:37:30.909-0300 W NETWORK  (thread1) Unable to reach primary for set replica-example
2020-10-22T09:37:30.943-0300 E QUERY    (thread1) Error: Could not find host matching read preference { mode: "primary", tags: ( {} ) } for set replica-example :
connect@src/mongo/shell/mongo.js:257:13
@(connect):1:6
exception: connect failed

Eu também consigo conectar em qualquer instância mongo separadamente a partir do host mas o replica ocorre este erro. Eu imagino que deve ser um erro de dns do docker mas não sei como corrigí-lo.

Aqui é possível ver o docker-compose.yml.

PS.: Eu consigo conectar a partir do host nas instâncias usando o endereço localhost. Usando o ip definido no docker-compose não funciona.

{Host IT Smart} Set Up Your Web Store availing 80% Discount on E-commerce Hosting – Hosting, VPN, Proxies

Are you looking for an Affordable Hosting for your web store?

Host IT Smart launches a special offer on e-commerce hosting for an online store that provides affordable pricing and a high range of features.

We consider the speed seriously for the online store as we know that it can impact your leads & sales & hence we provide the blazing speed on the server that’s beneficial for the website.

When it comes to pricing, we have the best plans suitable for short period plans as well. You also get substantial pricing when you sign up with the long term plans.

Have a Look at the Ecommerce Hosting Plans by Host IT Smart:

Starter Plan: Starting @ Rs 80/mo

  • Unlimited Webspace (SSD)
  • Unlimited Bandwidth
  • FREE SSL Certificate
  • 1 Website
  • Unlimited E-Mail IDs
  • 1 Subdomain
  • 2 MYSQL Space
  • 1 Park Domain
  • 1 FTP Accounts

Performance plan: Starting @ Rs 160/mo

  • Unlimited Webspace (SSD)
  • Unlimited Bandwidth
  • FREE SSL Certificate
  • 10 Websites
  • Unlimited E-Mail IDs
  • 10 Subdomains
  • 10 MYSQL Space
  • 5 Park Domain
  • 10 FTP Accounts

Business Plan: Starting @ Rs 320/mo

  • Unlimited Webspace (SSD)
  • Unlimited Bandwidth
  • FREE SSL Certificate
  • Unlimited Websites
  • Unlimited E-Mail IDs
  • Unlimited Subdomains
  • Unlimited Database
  • Unlimited Park Domains
  • Unlimited FTP Accounts

If you purchase WordPress hosting for more than 2 years, it avails you for an additional 30% discount.

By Applying code: HOSTITSMART30, You Get an Extra 30% Discount.

 

Our Support Team is prepared to help you in any circumstance and anytime to tackle any issue in the best possible manner. We additionally furnish Instant Talk administration to interact with you, virtually.

For Immediate Assistance or information, contact us: info@hostitsmart.com or visit our website for live chat. 
 

partition – VMware esxi host partedUtil sector bit and block size?

Alright, things i did are: studying https://kb.vmware.com/s/article/1036609 and https://kb.vmware.com/s/article/2004299 , and also googled some other information about the “partedUtil” in ESXi.

I encountered doubts when utilizing partedUtil commandlines to configure partitions in ESXi 7.0 host but I failed to find proper answer for my own doubts.

According to figure below,

enter image description here

can anyone please tell me what is the measuring unit(is it kb?) of 16987000 and 17092000? (i know they are the “sector start” and “sector end”, respectively.)

additionally, how do i know the measuring unit(mb?) of block size for specific partition(such as VMFS Datastore or Linux Swap, for example) when configuring with partedUtil in ESXi??

The last question is: do I need to multiply “block size” by “space I need” as the space(between start sector and end sector) for the partition I need? or maybe the space between start and end sector is quite simple to calculate which does not need to take “block size” into consideration?

thanks in advance!!

{Global Host IT Smart}Host Your Blog on WordPress|1-Click Installation|Only @ $1.50 – Hosting, VPN, Proxies

Select your WordPress hosting plan for your blogging website & go online today!

Host IT Smart a fantastic offer on WordPress Hosting plans that gears you up to sign up & share your content across the web. With affordable pricing, the plans’ features & services would be as best as you want for your website.

We have one of the best WordPress hosting plans. When you host with us, regular back up, uptime maintenance, speed, scalability, security, literally everything – is taken care of, while you put your efforts towards growing your business.

Let’s get into the pricing of WordPress Hosting Plans by Host IT Smart:

Starter plan – @ $1.50/mo

  • Unlimited webspace
  • Unlimited Bandwidth
  • 1 website
  • Free SSL Certificate
  • Unlimited Email IDs
  • 1 subdomain
  • 2 MYSQL space
  • 1 park domain
  • 1 FTP Accounts

Performance plan- @ $2.50/mo

  • Unlimited Webspace
  • Unlimited Bandwidth
  • 10 Websites
  • Free SSL Certificate
  • Unlimited Email IDs
  • 10 subdomains
  • 10 MYSQL space
  • 5 park domain
  • 10 FTP accounts

Business plan- @ $5.00/mo

  • Unlimited Webspace
  • Unlimited Bandwidth
  • Unlimited websites
  • Free SSL Certificate
  • Unlimited subdomains
  • Unlimited data space
  • Unlimited park domain
  • Unlimited FTP accounts

These are 50% discounted, but you can avail more discounts with the plans.

If you purchase WordPress hosting for 1 or 2 years, it avails you of an additional 20% discount.
By Applying code: HOSTITSMART20, You Get an Extra 20% Discount.

If you purchase WordPress hosting for more than 2 years, it avails you of an additional 30% discount.
By Applying code: HOSTITSMART30, You Get an Extra 30% Discount.

Check Our More Deals:
https://global.hostitsmart.com/deals

 

Our Support Team is prepared to help you in any circumstance and anytime to tackle any issue in the best possible manner. We additionally furnish Instant Talk administration to interact with you, virtually.

For Immediate Assistance or information, contact us: info@hostitsmart.com or visit our website for live chat. 
 

windows – How to ssh into linux host in VMware Workstation 15

I am using VMware Workstation 15 inside Windows 10. I have created an Ubuntu instance under it. From another machine, I can ssh into it if I am connected into local network, but I am unable to connect into it using the public ip of the Windows machine.

  • If I use Bridged network option, ifconfig in ubuntu host returns a local ip-address, which I can ssh into if I am in local network.

  • One possible solution I was thinking to ssh into Windows-powershell and if I can, I can ssh into the VM.

(Q) How can I connect into Ubuntu instance that is running inside VMware Workstation using its public ip?

Accepted answer here is for the older version of VMware Workstation.


I couldn’t find proper guide for the VMware Workstation 15, all the ones I find are for its older versions, as such:

=> https://www.virten.net/2013/03/how-to-setup-port-forwarding-in-vmware-workstation-9/

=> https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-D884CB72-28A5-4F03-9B82-783F523C256C.html


My original question is closed on stackoverflow (https://stackoverflow.com/q/64081856/2402577), hence I was advised to ask in here.