Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
this server has only publick acces to ports 5060 and 10000-20000, voip traffic.
I have blocked all other ports from outside with IP tables.
Now, I want to make sure that the webserver/httpd listens only to IP 192.168.1.1
because I have a vpn pptpd on this server, so when I need to config something on webinterface I would make vpn connection to the server, server will give me 192.x.x.x IP, and I will be able to reach the web gui on 192.168.1.1
so when I go to /etc/httpd/conf/httpd.conf
change the listing settings to the local IP, then I get this :
root@pbx:~ $ service httpd start
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 192.168.1.1:9080
no listening sockets available, shutting down
Unable to open logs
this is my config :
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
#Listen *:80
Listen 192.168.1.1:9080
Listen *:9080
----
just for the info.
If I comment the listen IP setting
and start httpd normally with port 9080 it works fine, but then it's vailable on public IP and also on local IP 192. so I know that my httpd works fine on defined port 9080.
root@localhost:~ $ service httpd start
Starting httpd: (99)Cannot assign requested address: make_sock: could not bind to address 192.168.1.1:9080
no listening sockets available, shutting down
Unable to open logs
[FAILED]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.