How do connect /var/www/html folder to the spring-boot project in /home/userphpinfo(); in /var/www/html not workingCannot create file in /var/www/htmlRecover /var/www/htmlHow to add files to /var/www/html/ without using the terminal?Linux restrict user to specific folder in var/wwwCan hackers inject anything to the server outside /var/www/html
How can you know which index is tracked by a specific index fund?
Could anyone explain this 置く置かない to me please
Rite of Winter: How to Stop Crescian Couples from Mutual Assassination
Is economics a science?
Spirit guardians and iron golems
What's the girl's name?
process numerical input arguments of mixed ints, floats, and "array-like" things of same length>1
Can Mathematica provide a reliable estimate of the numerical error from NDSolve?
Does Burrow leave behind a tunnel?
Will transcribing music improve my ability to play a song by ear?
How do you help a new player evaluate complex multiclassing options without driving them and yourself crazy?
Sold item on eBay, buyer wants it to be delivered to another country, and pay by bank transfer
What is the difference between "more" and "less" commands?
Can I freely use 'here is' instead of 'there is' if I'm in the place where that thing is?
Possible way to counter or sidestep split-second spells (like Trickbind) in a particular situation
Was X17 predicted before it was observed?
Is it possible to write Quake's fast InvSqrt() function in Rust?
Weakening g4 move
What are the possible punishments for an impeached USA president?
A good reference to the Gauss result on the structure of the multiplicative group of a residue ring
Is it possible to find out the probability of a type 2 error in 2 sample t test?
Why is this negated with nicht and not kein?
Is Communism intrinsically Authoritarian?
A fantasy novel that takes place on a ship. There is a spy on the ship and at some point amphibious monsters catch him
How do connect /var/www/html folder to the spring-boot project in /home/user
phpinfo(); in /var/www/html not workingCannot create file in /var/www/htmlRecover /var/www/htmlHow to add files to /var/www/html/ without using the terminal?Linux restrict user to specific folder in var/wwwCan hackers inject anything to the server outside /var/www/html
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have created a spring-boot project in /home/MYUSERNAME folder
in the spring boot project there are html and jsp files in webapps/jsps/ folder.
So, how do I link them to www/html folder?
Is it a good way to do it ?
apache2
add a comment
|
I have created a spring-boot project in /home/MYUSERNAME folder
in the spring boot project there are html and jsp files in webapps/jsps/ folder.
So, how do I link them to www/html folder?
Is it a good way to do it ?
apache2
This is not an ubuntu question, I would ask on stackoverflow
– j-money
Sep 20 at 23:34
Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here
– Prodip
Sep 22 at 1:40
add a comment
|
I have created a spring-boot project in /home/MYUSERNAME folder
in the spring boot project there are html and jsp files in webapps/jsps/ folder.
So, how do I link them to www/html folder?
Is it a good way to do it ?
apache2
I have created a spring-boot project in /home/MYUSERNAME folder
in the spring boot project there are html and jsp files in webapps/jsps/ folder.
So, how do I link them to www/html folder?
Is it a good way to do it ?
apache2
apache2
asked Sep 20 at 18:25
ProdipProdip
1
1
This is not an ubuntu question, I would ask on stackoverflow
– j-money
Sep 20 at 23:34
Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here
– Prodip
Sep 22 at 1:40
add a comment
|
This is not an ubuntu question, I would ask on stackoverflow
– j-money
Sep 20 at 23:34
Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here
– Prodip
Sep 22 at 1:40
This is not an ubuntu question, I would ask on stackoverflow
– j-money
Sep 20 at 23:34
This is not an ubuntu question, I would ask on stackoverflow
– j-money
Sep 20 at 23:34
Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here
– Prodip
Sep 22 at 1:40
Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here
– Prodip
Sep 22 at 1:40
add a comment
|
1 Answer
1
active
oldest
votes
Did you try with a symbolic link?
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Example
ln -s /home/MYUSERNAME/PROJECT_NAME/webapps/jsps/ /var/www/html
If destination folder already exists, you have to delete it
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175546%2fhow-do-connect-var-www-html-folder-to-the-spring-boot-project-in-home-user%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Did you try with a symbolic link?
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Example
ln -s /home/MYUSERNAME/PROJECT_NAME/webapps/jsps/ /var/www/html
If destination folder already exists, you have to delete it
add a comment
|
Did you try with a symbolic link?
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Example
ln -s /home/MYUSERNAME/PROJECT_NAME/webapps/jsps/ /var/www/html
If destination folder already exists, you have to delete it
add a comment
|
Did you try with a symbolic link?
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Example
ln -s /home/MYUSERNAME/PROJECT_NAME/webapps/jsps/ /var/www/html
If destination folder already exists, you have to delete it
Did you try with a symbolic link?
usage: ln [-Ffhinsv] source_file [target_file]
ln [-Ffhinsv] source_file ... target_dir
link source_file target_file
Example
ln -s /home/MYUSERNAME/PROJECT_NAME/webapps/jsps/ /var/www/html
If destination folder already exists, you have to delete it
answered Sep 20 at 19:07
ErcoleErcole
11 bronze badge
11 bronze badge
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175546%2fhow-do-connect-var-www-html-folder-to-the-spring-boot-project-in-home-user%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This is not an ubuntu question, I would ask on stackoverflow
– j-money
Sep 20 at 23:34
Yeah, since I was trying to do this in an ubuntu server, thought I should ask this here
– Prodip
Sep 22 at 1:40