Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where is httpd.conf on Ubuntu?

Technology
0
Sabrina B Posted

I am running apache2 on Ubuntu.  Can someone tell me where httpd.conf is that I’m supposed to edit?

1

Hello,

By default, there is no httpd.conf for apache2 on ubuntu. The apache configuration file is /etc/apache2/apache2.conf

0
Lucas Lopes20

Uma resposta mais simples e fácil de entender:

No Ubuntu com Apache2, o arquivo de configuração principal é chamado “apache2.conf”. Para versões recentes (Ubuntu 20.04+), ele está em `/etc/apache2/apache2.conf`. Em versões mais antigas, ele pode estar em `/etc/apache2/httpd.conf`. Use o comando `sudo` antes do seu editor preferido para editá-lo, por exemplo: `sudo nano /etc/apache2/apache2.conf`. Após as edições, reinicie o Apache com `sudo service apache2 restart`.

0
Lucas Lopes20

No Apache2, utilizado comumente no Ubuntu, o arquivo de configuração principal é chamado de “apache2.conf”, e não “httpd.conf” como é frequentemente chamado em outras distribuições do Apache. O nome do arquivo difere devido à forma como o Apache é empacotado no Ubuntu.

Você pode encontrar o arquivo de configuração “apache2.conf” em um dos seguintes caminhos, dependendo da versão do Ubuntu:

– Para o Ubuntu 20.04 e versões posteriores:
O arquivo “apache2.conf” geralmente está localizado em: `/etc/apache2/apache2.conf`

– Para versões anteriores do Ubuntu:
O arquivo “apache2.conf” pode estar localizado em: `/etc/apache2/httpd.conf`

Lembre-se de que para editar esses arquivos, você normalmente precisa ter permissões de superusuário. Você pode usar o comando `sudo` antes do seu editor de texto preferido para abrir e editar o arquivo, por exemplo:

“`
sudo nano /etc/apache2/apache2.conf
“`

Substitua “nano” pelo nome do editor que você prefere, como “vi” ou “gedit”.

Após fazer as edições necessárias no arquivo de configuração, não se esqueça de reiniciar o serviço do Apache para que as alterações tenham efeito:

“`
sudo service apache2 restart
“`

Lembre-se também de fazer backup do arquivo de configuração antes de fazer alterações importantes, para que você possa reverter se algo der errado.

0
afrejt

A handicap on kills of 5.5-7.5 will be bet dota 2 items issued in a match of approximately equal teams. This means a simple thing – with a high degree of probability, you can bet on your favorite with a minus handicap. As a rule, the winning team has a gap of just over five kills in its direction. For example, if you take the OG team, it will have a lot of wins, no matter if they lose in the killings or do not have a big advantage. The same refers to Team Secret.

0

Httpd.conf Location. On Ubuntu, httpd.conf is located in the directory /etc/apache2. apache2.conf is also located in /etc/apache2. To ensure these locations are accurate, I’ve checked httpd.conf’s location on a number of different Ubuntu versions.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.