Where is apache.conf?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Where is apache.conf?

realtebo
I'm looking at this web page: https://www.vagrantup.com/docs/synced-folders/virtualbox.html

I need to change apache.conf (or httpd.conf).

Where is this file in a Vagrant box ?

(Sorry, i'm  total newbie)

I tried these searches  but none found...

vagrant@homestead:/$ sudo find . -name httpd.conf
vagrant@homestead:/
$ sudo find . -name apache.conf
vagrant@homestead
:/$ sudo find . -name apache.*
./
usr/share/vim/vim74/syntax/apache.vim
./usr/share/sosreport/sos/plugins/__pycache__/apache.cpython-35.pyc
./usr/share/sosreport/sos/plugins/apache.py

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/2829455a-b138-4648-806c-22a50657b9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Where is apache.conf?

Alvaro Miranda Aguilera
Hello

You need to install the package first

ie

apt-get update
apt-get install -y httpd  (not sure the right name)

Alvaro

On Thu, May 18, 2017 at 11:14 AM, realtebo <[hidden email]> wrote:
I'm looking at this web page: https://www.vagrantup.com/docs/synced-folders/virtualbox.html

I need to change apache.conf (or httpd.conf).

Where is this file in a Vagrant box ?

(Sorry, i'm  total newbie)

I tried these searches  but none found...

vagrant@homestead:/$ sudo find . -name httpd.conf
vagrant@homestead:/
$ sudo find . -name apache.conf
vagrant@homestead
:/$ sudo find . -name apache.*
./
usr/share/vim/vim74/syntax/apache.vim
./usr/share/sosreport/sos/plugins/__pycache__/apache.cpython-35.pyc
./usr/share/sosreport/sos/plugins/apache.py

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/2829455a-b138-4648-806c-22a50657b9b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezZTV%3DRBqqZPnADUzrMX2UrhhUNdDNMiQu1wQn8hn3H6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Where is apache.conf?

realtebo
I actually have 'some' running webserver because I'm using Homestead to command Vagrant, for developing with Laravel framework.

Probably is there another web server used by Homestead+Vagrant?


This my vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

require 'json'
require 'yaml'

VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))

homesteadYamlPath = confDir + "/Homestead.yaml"
homesteadJsonPath = confDir + "/Homestead.json"
afterScriptPath = confDir + "/after.sh"
aliasesPath = confDir + "/aliases"

require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb')

Vagrant.require_version '>= 1.9.0'

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    if File.exist? aliasesPath then
        config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
        config.vm.provision "shell" do |s|
            s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases"
        end
    end

    if File.exist? homesteadYamlPath then
        settings = YAML::load(File.read(homesteadYamlPath))
    elsif File.exist? homesteadJsonPath then
        settings = JSON.parse(File.read(homesteadJsonPath))
    else
        abort "Homestead settings file not found in #{confDir}"
    end

    Homestead.configure(config, settings)

    if File.exist? afterScriptPath then
        config.vm.provision "shell", path: afterScriptPath, privileged: false
    end

    if defined? VagrantPlugins::HostsUpdater
        config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
    end
end


And this my Homestead file

---
ip: "192.168.192.33"
memory: 2048
cpus: 2
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: C:\Users\realtebo\Downloads\LaravelCode
      to: /home/vagrant/Code

sites:
    - map: my.app
      to: /home/vagrant/Code/my_app/public

databases:
    - my_app_db





Il giorno giovedì 18 maggio 2017 12:21:55 UTC+2, Alvaro Miranda Aguilera ha scritto:
Hello

You need to install the package first

ie

apt-get update
apt-get install -y httpd  (not sure the right name)

Alvaro

On Thu, May 18, 2017 at 11:14 AM, realtebo <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="JekoBbNxAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">real...@...> wrote:
I'm looking at this web page: <a href="https://www.vagrantup.com/docs/synced-folders/virtualbox.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.vagrantup.com%2Fdocs%2Fsynced-folders%2Fvirtualbox.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEgGcvOlRH0781cDjMoAcG0aNABng&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.vagrantup.com%2Fdocs%2Fsynced-folders%2Fvirtualbox.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEgGcvOlRH0781cDjMoAcG0aNABng&#39;;return true;">https://www.vagrantup.com/docs/synced-folders/virtualbox.html

I need to change apache.conf (or httpd.conf).

Where is this file in a Vagrant box ?

(Sorry, i'm  total newbie)

I tried these searches  but none found...

vagrant@homestead:/$ sudo find . -name httpd.conf
vagrant@homestead:/
$ sudo find . -name apache.conf
vagrant@homestead
:/$ sudo find . -name apache.*
./
usr/share/vim/vim74/syntax/apache.vim
./usr/share/sosreport/sos/plugins/__pycache__/apache.cpython-35.pyc
./usr/share/sosreport/sos/plugins/apache.py

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="JekoBbNxAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/2829455a-b138-4648-806c-22a50657b9b3%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/2829455a-b138-4648-806c-22a50657b9b3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/2829455a-b138-4648-806c-22a50657b9b3%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/2829455a-b138-4648-806c-22a50657b9b3%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f869a60b-f38f-4ca5-ae50-28fd91266119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Where is apache.conf?

realtebo
In reply to this post by realtebo
I resolved without touching Vagrant box configs.

My issue was related to autocompiling and reloading of assets under Homestead/Vagrant/Laravel development.

I resolved just applying this tips

You may find that in certain environments Webpack isn't updating when your files change. If this is the case on your system, consider using the watch-poll command:
npm run watch-poll

Fond here: https://laravel.com/docs/5.4/mix#running-mix  

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/2968f025-c6d3-478b-89f0-5fac70c37353%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.