web server on openstack instance

asked 2013-12-11 14:27:32 -0600

anonymous user


I installed a web server on a running openstack instance, then assign a port to it. When I try to access this web server using floating ip from both host and outside machines, I failed.

I'm wondering whether sth block access. I even add that port in security group and iptables, but failed as well.

Does anyone install web server on instance and start successfully? Even Apache failed to start using floating ip plus port.


edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2013-12-12 10:09:01 -0600

rbowen gravatar image

As far as Apache goes, on the instance, what exactly do you mean when you say that it failed? What did the Apache error log say?

I presume that when you say that you're using the floating IP plus port on Apache, you mean in the Listen directive? It's generally a better idea to just use 'Listen 80' syntax (viz: http://httpd.apache.org/docs/2.4/mod/mpm_common.html#listen ) unless you actually want to distinguish between different IP addresses on that instance.

edit flag offensive delete link more


hi, thx for your comments. I changed to be Listen 80. Now when I typed "wget http://myinstancefloatingip" from openstack host, I can see the downloaded index.html. But I cannot see Apache page on browser, meaning if I type "http://myinstancefloatingip" on my browsers (e.g. IE, firefox), I didn't see anything. There's no errors in log as well.

xuelinlin88 gravatar imagexuelinlin88 ( 2013-12-12 13:41:27 -0600 )edit

check yout firewall settings: inside the instance and also in openstack

Cristi Falcas gravatar imageCristi Falcas ( 2013-12-12 14:06:59 -0600 )edit

do i need to modify iptables of both instance and openstack host? For instance, add NAT roles to translate fixed-ip to float-ip, or sth like it. Could you please tell me sth? I checked already, but still have no clue.

xuelinlin88 gravatar imagexuelinlin88 ( 2013-12-12 14:29:57 -0600 )edit

You need to open the ports on both: I would shutdown the firewall from the instance and also open all ports in openstack security. If it works after that, you can open only port 80/443.

Cristi Falcas gravatar imageCristi Falcas ( 2013-12-12 14:45:21 -0600 )edit

Are you sure Apache is running ? You might want to check that as well.

Bill@Metacloud gravatar imageBill@Metacloud ( 2013-12-12 15:40:32 -0600 )edit

answered 2014-02-20 12:14:28 -0600

jgriffith gravatar image

There's some good info here: http://docs.openstack.org/trunk/opens...

You most likely can just add the pre-defined https or https security rules and be good to go. It works for me at least.

edit flag offensive delete link more

answered 2014-02-21 11:15:08 -0600

Did this ever get solved, I run Apache on OpenStack all the time, there are now issues that I have seen.

edit flag offensive delete link more

answered 2014-07-26 12:23:19 -0600

kurtina89 gravatar image

sorry, surely i'm off topic, but i don't understand how to install a web server on an Openstack instance (the OS is cirros_x64). Is someone able to help me, please? thank you in advance.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-12-11 14:27:32 -0600

Seen: 4,343 times

Last updated: Jul 26 '14