yeah i meant using the ubuntu server as normal to serve the website to my mac locally, so its still behaving as a real website, without the net though. as now my apache server is configured to serve multiple sites with multiple vhosts. each one has its own domain. site1.me is my main project. id like to make site0.me a clone of site1.me thats served to my mac locally.
/etc/hosts on mac: ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 10.231.208.199 site1.me http://site1.me 192.168.1.20 flask0.me http://flask0.me 192.168.1.20 dsite1.me http://dsite1.me 192.168.1.20 forum1.me http://forum1.me so could i set up a vhost for site0.me and give it an ip like 127.0.0.1 site0.me http://site0.me On Wednesday, December 14, 2016 at 7:03:31 PM UTC-7, Graham Dumpleton wrote: > > Am somewhat confused about the question being asked. > > Are you talking about the Apache/mod_wsgi site you had issues with setting > up before? > > You mention both Ubuntu servers and a Mac, so not really sure what you are > asking and how things hang together. > > For local development you are possibly better off not using the main > operating system Apache setup, but use mod_wsgi-express instead. You can > run up your application on a non privileged port from the command line and > access it via localhost. > > See: > > * https://pypi.python.org/pypi/mod_wsgi > > Graham > > On 15 Dec 2016, at 12:56 PM, Jaqen Nki <[email protected] <javascript:>> > wrote: > > hey quick question, how would i configure a site to run on loopback, > sometimes when traveling dont have wifi 100% of time and would like to > still be able to develop. would i change my static ip config on ubuntu? > which currently looks like this: > > # /etc/networking/interfaces > > # interfaces(5) file used by ifup(8) and ifdown(8) > auto lo > iface lo inet loopback > > auto enp0s5 > iface enp0s5 inet static > address 10.231.208.199 > netmask 255.255.255.0 > gateway 10.128.128.128 > network 10.128.128.0 > broadcast 10.128.128.255 > > # OpenDNS IPv4 nameservers > dns-nameservers 10.128.128.128 > > # OpenDNS IPv6 nameservers > #dns-nameservers 2620:0:ccc::2 2620:0:ccd::2 > > or could i clone a site to run on loopback, and add a separate config for > that in this same file, so i could access them both while connected and > offline? > lastly how would i point my macs /etc/hosts file to serve the ubuntu > servers localhost? > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
