Comments (3)
Sorry. @pgib ...just wanted to clarify a few things. One is that I did of course boost my max search depth, I think it is set to 5.
Two, and this is just to be clear about my wishes – "the dream" is to be able to create a folder at some location, say... ~/Sites/projects/my-site/public
...and then run . virtualhost.sh my-site
and have the script intelligently set the web root set to /Users/dvk/Sites/projects/my-site/public
And it seems like this dream used to be a reality....or what?
from virtualhost.sh.
This seems to work for me:
$ mkdir -p ~/Sites/my-site/public
$ virtualhost.sh my-site
virtualhost.sh requires super-user privileges to work.
Enter your password to continue...
Checking for updates... none found
Create http://my-site:80/? [Y/n]: y
+ Looking in /Users/patrick/Sites for an existing document root to use...
- Use /Users/patrick/Sites/my-site as the virtualhost folder? [Y/n]
- Found a public folder suggesting a Rails/Rack project. Use as DocumentRoot? [y/N] y
+ Creating virtualhost file... done
+ Flushing cache... done
+ Restarting Apache... done
http://my-site:80/ is setup and ready for use.
Launching virtualhost... done
And then my virtual host file has:
# Created Tue Aug 20 12:44:28 PDT 2013
<VirtualHost *:80>
DocumentRoot "/Users/patrick/Sites/my-site/public"
ServerName my-site
#ServerAlias your.alias.here
ScriptAlias /cgi-bin "/Users/patrick/Sites/my-site/public/cgi-bin"
<Directory "/Users/patrick/Sites/my-site/public">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#CustomLog "" combined
#ErrorLog ""
</VirtualHost>
from virtualhost.sh.
Oh, I see: in BATCH_MODE
, this is not working.
from virtualhost.sh.
Related Issues (20)
- Custom Logs?
- Consider 3rd Argument. HOT 6
- Ignore Trailing Slash HOT 5
- Formatting Bug
- Symbolic Links (OSX 10.9 Mavericks) HOT 5
- Yosemite Beta - virtualhost.sh no longer working HOT 5
- Consider creating virtualhost organization on GitHub, adding collaborators HOT 2
- New virtualhost killed apache and other virtual hosts HOT 2
- Rework document root folder creation error handling
- Automatically upgrade hosts for Apache 2.4.x/Yosemite HOT 2
- Add virtualhost.sh --edit <host>
- Add automated tests
- NameVirtualHost is deprecated in Apache 2.4.x HOT 4
- Create VirtualHost files compatible with both Apache 2.2.x and 2.4.x HOT 1
- Improve update checking
- Script not adding WILDCARD_ZONE domain to hosts file HOT 3
- brewed apache24 compatibility HOT 2
- Missing the license for the project HOT 2
- Version 2 - resurrecting project - 2.0.0.beta2 release HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtualhost.sh.