Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Apache shutting down with VirtualHost conf file



Threaded Mode | Print  

 Apache shutting down with VirtualHost conf file (2 Replies, Read 275 times)
vtolenti89
Group: Member
Post Group: Newbie
Posts: 7
Status:
I am new to servers and my Apache server is shutting down whenever I try to add the following conf file

Code

<VirtualHost *:80>
    ServerAdmin foo@example.com
    ServerName example.com

    ProxyRequests off

    <Proxy *>
            Order deny,allow
            Allow from all
    </Proxy>

    <Location /myapp1>
            ProxyPass h_t_t_p_://localhost:3000
            ProxyPassReverse h_t_t_ p://localhost:3000
    </Location>

    <Location /myapp2>
            ProxyPass h_t_t_p://localhost:3010
            ProxyPassReverse h_t_t_p://localhost:3010
    </Location>

</VirtualHost>


Actually, the server shuts down even if only the following piece of code is added
Code

<VirtualHost *:80>

</VirtualHost>


I would like to be able to have requests, sent to e.g.
Code
h_t_t_p_s://example.com/myapp1
redirected to the port 3000.

Any ideas what I am doing wrong?

IP: --   

Apache shutting down with VirtualHost conf file
Dhanya
Group: Softaculous Team
Post Group: Working Member
Posts: 184
Status:
Hi,

The Apache web server will stop when you will add the code directly into the Apache configuration by manually editing the file. You can add your following code in a conf file and upload the conf file from Extra Configuration page in Apache web server:
  <Location /myapp1>
            ProxyPass http://localhost:3000
            ProxyPassReverse http://localhost:3000
    </Location>

    <Location /myapp2>
            ProxyPass http://localhost:3010
            ProxyPassReverse http://localhost:3010
    </Location>

You can view the below guide for adding extra configuration:
http://www.webuzo.com/docs/endusers/add-extra-configuration-file

Let us know if you have any queries.
IP: --   

Apache shutting down with VirtualHost conf file
vtolenti89
Group: Member
Post Group: Newbie
Posts: 7
Status:
I am already adding it as an "Extra Configuration" file in the mentioned page.
As soon as I upload the file the apache server shuts down. I assume it is something wrong with my code because by commenting everything out and uploading it, the server does not shut down.
Am I missing anything in the configuration file?
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 14, 2019, 9:43 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.157